nicolaij / esphomes

проекты на Esphome
3 stars 1 forks source link

display component for st7565r not compiling #1

Open FotoFieber opened 8 months ago

FotoFieber commented 8 months ago

Thx for your display component for the st7565r. I tried to use it with esphome but get several errors while compiling:

... Compiling .pio\build\esp32-s3-display\src\esphome\core\entity_base.cpp.o In file included from src/esphome/components/st7565r/st7565r.cpp:1: src/esphome/components/st7565r/st7565r.h:16:11: warning: direct base 'esphome::PollingComponent' inaccessible in 'esphome::st7565r::ST7565r' due to ambiguity class ST7565r : public PollingComponent, ^~~~~~~ In file included from src/esphome/components/st7565r/st7565r.h:3, from src/esphome/components/st7565r/st7565r.cpp:1: src/esphome/components/st7565r/st7565r.cpp: In member function 'virtual void esphome::st7565r::ST7565r::dump_config()': src/esphome/core/component.h:47:13: error: request for member 'get_update_interval' is ambiguous if (this->get_update_interval() == SCHEDULER_DONT_RUN) { \ ... It doesn't compile in HomeAssistant and on a local version of esphome. Do I have a problem with my setup or was there an incompatible change in ESPHOME?

You find my YAML-file attached.

FotoFieber commented 8 months ago

display.zip

FotoFieber commented 8 months ago

It compiles, if I remove PollingComponent from the .h file.

Will check, if it is working and if so, make a pull request.

FotoFieber commented 8 months ago

It is working fine. Pull request in your inbox. :)