Closed 00107 closed 9 months ago
The problem is in the external component, not in esphome - there have been done many changes related to display components, so old external components, especially something from sept 2023, will not work.
Checking that component - switch to main (remove ref: sept2023
) branch and you should be good.
Thanks a lot!
The problem
After one of the last ESPHome updates I can no longer update or change my Liligo displays. Previously everything worked fine, now I get error messages when trying to update the boards.
INFO ESPHome 2023.12.5 INFO Reading configuration /config/esphome/tdisplay-2.yaml... INFO Detected timezone 'Europe/Berlin' INFO Generating C++ source... Traceback (most recent call last): File "/usr/local/bin/esphome", line 33, in
sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 1041, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 1028, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 458, in command_run
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "/esphome/esphome/main.py", line 192, in write_cpp
generate_cpp_contents(config)
File "/esphome/esphome/main.py", line 204, in generate_cpp_contents
CORE.flush_tasks()
File "/esphome/esphome/core/init.py", line 679, in flush_tasks
self.event_loop.flush_tasks()
File "/esphome/esphome/coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "/esphome/esphome/main.py", line 184, in wrapped
await coro(conf)
File "/data/external_components/739e7676/components/tdisplays3/display.py", line 107, in to_code
await display.register_display(var, config)
File "/esphome/esphome/components/display/init.py", line 119, in register_display
await cg.register_component(var, config)
File "/esphome/esphome/cpp_helpers.py", line 56, in register_component
raise ValueError(
ValueError: Component ID disp was not declared to inherit from Component, or was registered twice. Please create a bug report with your configuration.
Which version of ESPHome has the issue?
2023.12.5
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.12 / 2024.1
What platform are you using?
ESP32
Board
Lilygo T-Display-S3 non-touch version
Component causing the issue
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response