Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile errors with new ESPHOME versions #158

Open
jemarr opened this issue Jul 3, 2024 · 1 comment
Open

Compile errors with new ESPHOME versions #158

jemarr opened this issue Jul 3, 2024 · 1 comment

Comments

@jemarr
Copy link

jemarr commented Jul 3, 2024

I have an Wemos D1 working fine since 6 months ago. Now I want to recompile with a new reset button but I get always this errors:

E:\VARIOS\ESPHOME>esphome compile acm.yaml
INFO ESPHome 2024.5.5
INFO Reading configuration acm.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Scripts\esphome.exe_main
.py", line 7, in
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main
.py", line 1065, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main_.py", line 1052, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main_.py", line 428, in command_compile
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main_.py", line 192, in write_cpp
generate_cpp_contents(config)
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main_.py", line 204, in generate_cpp_contents
CORE.flush_tasks()
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\core_init_.py", line 681, in flush_tasks
self.event_loop.flush_tasks()
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome_main_.py", line 184, in wrapped
await coro(conf)
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\coroutine.py", line 80, in coro
ret = yield from _flatten_generator(gen)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Jesus\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\coroutine.py", line 118, in _flatten_generator
val = gen.send(to_send)
^^^^^^^^^^^^^^^^^
File "E:\VARIOS\ESPHOME.esphome\external_components\3b4567cc\components\mitsubishi_heatpump\climate.py", line 101, in to_code
serial = HARDWARE_UART_TO_SERIAL[PLATFORM_ESP8266][config[CONF_HARDWARE_UART]]
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'esp8266'

E:\VARIOS\ESPHOME>python --version
Python 3.12.4

Other yaml programs I have compile ok.

I have deleted all previous compilation files and external components.

But I don't know how to do now.

Thanks

@jemarr
Copy link
Author

jemarr commented Jul 5, 2024

I've solved the issue just updating ESPHOME to 2024.6.6

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant