12 void setup()
override;
switch_::Switch * source_
float get_setup_priority() const override
void dump_config() override
void set_source(switch_::Switch *source)
void write_state(bool state) override
Base class for all switches.
bool state
The current reported state of the binary sensor.
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.