heinekmadsen / esphome_components

ESPHome custom_components
30 stars 39 forks source link

Compile error on ESPHome v2021.20.1 #2

Closed MTrab closed 2 years ago

MTrab commented 2 years ago

When compiling (Installing) on ESPHome 2021.20.1 I get this error:

Compiling /data/wavin/.pioenvs/wavin/src/esphome/components/wavinAhc9000/wavinAhc9000.cpp.o
Compiling /data/wavin/.pioenvs/wavin/src/esphome/components/web_server_base/web_server_base.cpp.o
src/esphome/components/wavinAhc9000/wavinAhc9000.cpp: In member function 'virtual void esphome::wavinAhc9000::WavinAhc9000::setup()':
src/esphome/components/wavinAhc9000/wavinAhc9000.cpp:27:21: error: 'OUTPUT' was not declared in this scope
   rw_pin_->pin_mode(OUTPUT);
                     ^
*** [/data/wavin/.pioenvs/wavin/src/esphome/components/wavinAhc9000/wavinAhc9000.cpp.o] Error 1
heinekmadsen commented 2 years ago

https://github.com/heinekmadsen/esphome_components/commit/ef8c37c85729bb50c0f58f070f4c8148e562e44b#diff-4d3b94fe9b391967bb3f73a9edba48f0d5286d08799aa4e1f221661349a17e15

MTrab commented 2 years ago

Okay, that fixed the compile error - but doesn't work. I'll open a new issue for the new error.