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

ValueError: Component ID frekvenspanel_panel was not declared to inherit from Component #3

Open
Guytoo42 opened this issue Mar 3, 2024 · 0 comments

Comments

@Guytoo42
Copy link

Guytoo42 commented Mar 3, 2024

I get this error message when I try to compile the example code, do you have any ideas thank you

INFO ESPHome 2024.2.1
INFO Reading configuration /home/homeassistant/.homeassistant/esphome/horloge-cube.yaml...
INFO Generating C++ source...
Traceback (most recent call last):
File "/srv/esphome/bin/esphome", line 8, in
sys.exit(main())
^^^^^^
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 1041, in main
return run_esphome(sys.argv)
^^^^^^^^^^^^^^^^^^^^^
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 1028, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 407, in command_compile
exit_code = write_cpp(config)
^^^^^^^^^^^^^^^^^
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 192, in write_cpp
generate_cpp_contents(config)
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 204, in generate_cpp_contents
CORE.flush_tasks()
File "/srv/esphome/lib/python3.11/site-packages/esphome/core/init.py", line 679, in flush_tasks
self.event_loop.flush_tasks()
File "/srv/esphome/lib/python3.11/site-packages/esphome/coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "/srv/esphome/lib/python3.11/site-packages/esphome/main.py", line 184, in wrapped
await coro(conf)
File "/home/homeassistant/.homeassistant/esphome/components/frekvens_panel/display.py", line 40, in to_code
await display.register_display(var, config)
File "/srv/esphome/lib/python3.11/site-packages/esphome/components/display/init.py", line 119, in register_display
await cg.register_component(var, config)
File "/srv/esphome/lib/python3.11/site-packages/esphome/cpp_helpers.py", line 56, in register_component
raise ValueError(
ValueError: Component ID frekvenspanel_panel was not declared to inherit from Component, or was registered twice. Please create a bug report with your configuration.

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