25 void setup()
override;
Base class for all switches.
output::BinaryOutput * output_
void set_restore_mode(OutputSwitchRestoreMode restore_mode)
void dump_config() override
void write_state(bool state) override
void set_output(BinaryOutput *output)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
float get_setup_priority() const override
OutputSwitchRestoreMode restore_mode_
bool state
The current reported state of the binary sensor.