When I try using these external components: external_components:
- source: github://GadgetFactory-Jeannie/esphome-components@main
components: [gc9a01, CST816S_touchscreen]
I encounter this problem with the display:
- platform: gc9a01
id: smart_switch_display
reset_pin: $repin
cs_pin: $cspin
dc_pin: $dcpin
rotation: 90
The problem:
INFO Generating C++ source...
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\Scripts\esphome.exe\__main__.py", line 7, in <module>
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 1061, in main
return run_esphome(sys.argv)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 1048, in run_esphome
rc = POST_CONFIG_ACTIONS[args.command](args, config)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 478, in command_run
exit_code = write_cpp(config)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 192, in write_cpp
generate_cpp_contents(config)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 204, in generate_cpp_contents
CORE.flush_tasks()
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\core\__init__.py", line 679, in flush_tasks
self.event_loop.flush_tasks()
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\coroutine.py", line 246, in flush_tasks
next(task.iterator)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\__main__.py", line 184, in wrapped
await coro(conf)
File "C:\Users\bryan\.esphome\external_components\4c59ea0a\components\gc9a01\display.py", line 77, in to_code
await setup_gc9a01(var, config)
File "C:\Users\bryan\.esphome\external_components\4c59ea0a\components\gc9a01\display.py", line 56, in setup_gc9a01
await display.register_display(var, config)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\components\display\__init__.py", line 119, in register_display
await cg.register_component(var, config)
File "C:\Users\bryan\AppData\Roaming\Python\Python310\site-packages\esphome\cpp_helpers.py", line 56, in register_component
raise ValueError(
ValueError: Component ID smart_switch_display was not declared to inherit from Component, or was registered twice. Please create a bug report with your configuration.
sys:1: RuntimeWarning: coroutine 'to_code' was never awaited
sys:1: RuntimeWarning: coroutine 'add_arduino_global_workaround' was never awaited
Do you guys know how to fix it?