Avoid cyclic dependency
This commit is contained in:
parent
6bf6ecc114
commit
3c288d1599
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue