12 void setup()
override;
13 void dump_config()
override;
virtual void setup()
Where the component's initialization should happen.
void write_state(bool state) override
Base class for all switches.
bool state
The current reported state of the binary sensor.