From 3c288d159951206e32df157933ea37e86796d612 Mon Sep 17 00:00:00 2001 From: sqozz Date: Mon, 16 Sep 2024 21:45:39 +0200 Subject: [PATCH] Avoid cyclic dependency --- switch/tw7100_switch.cpp | 1 + switch/tw7100_switch.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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;