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
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]]