diff --git a/switch/tw7100_switch.cpp b/switch/tw7100_switch.cpp index 88a4162..b4a07fb 100644 --- a/switch/tw7100_switch.cpp +++ b/switch/tw7100_switch.cpp @@ -1,4 +1,5 @@ #include "tw7100_switch.h" +#include "../tw7100.h" #include "esphome/core/log.h" #include "esphome/core/defines.h" #include "esphome/core/helpers.h" diff --git a/switch/tw7100_switch.h b/switch/tw7100_switch.h index 6531b0c..e8c4322 100644 --- a/switch/tw7100_switch.h +++ b/switch/tw7100_switch.h @@ -2,11 +2,12 @@ #include "esphome/core/component.h" #include "esphome/components/switch/switch.h" -#include "../tw7100.h" namespace esphome { namespace tw7100 { +class tw7100Component; + class tw7100Switch : public switch_::Switch, public Component { public: void dump_config() override;