monorkin / esphome_st7565

ESPHome external component for ST7565 displays
Other
6 stars 3 forks source link

ValueError: Component ID st7565_st7565 was not declared to inherit from Component, or was registered twice. Please create a bug report with your configuration. #4

Closed Digital-Ark closed 7 months ago

Digital-Ark commented 9 months ago

Please see:

https://github.com/landonr/lilygo-tdisplays3-esphome/pull/46

In the last release of ESPHome, some small changes were done to the display component, to make subcomponents leaner. With those changes, compilation breaks if a display is trying to register as a component itself (this is now done automatically when registering the display).

tikalin2000 commented 7 months ago

hello there are somesolution available?

monorkin commented 7 months ago

Sorry, I missed this issue. I'll take a look at.

monorkin commented 7 months ago

Just ported over the fix that @Digital-Ark linked to, and verified that it works on my device with the latest Docker container.

@Digital-Ark or @tikalin2000 can one of you verify that the fix works for you?

Digital-Ark commented 7 months ago

image

Works for me! Thanks for the fix! Much appreciated.

monorkin commented 7 months ago

Thank you for the feedback and quick response @Digital-Ark ! I just merged the PR and broke release 1.1.0, to use it in your project you can specify @1.1.0 instead of a branch.