Avoid cyclic dependency

This commit is contained in:
sqozz 2024-09-16 21:45:39 +02:00
parent 6bf6ecc114
commit 3c288d1599
2 changed files with 3 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "tw7100_switch.h" #include "tw7100_switch.h"
#include "../tw7100.h"
#include "esphome/core/log.h" #include "esphome/core/log.h"
#include "esphome/core/defines.h" #include "esphome/core/defines.h"
#include "esphome/core/helpers.h" #include "esphome/core/helpers.h"

View file

@ -2,11 +2,12 @@
#include "esphome/core/component.h" #include "esphome/core/component.h"
#include "esphome/components/switch/switch.h" #include "esphome/components/switch/switch.h"
#include "../tw7100.h"
namespace esphome { namespace esphome {
namespace tw7100 { namespace tw7100 {
class tw7100Component;
class tw7100Switch : public switch_::Switch, public Component { class tw7100Switch : public switch_::Switch, public Component {
public: public:
void dump_config() override; void dump_config() override;