14 void setup()
override;
Base class for all switches.
void set_state_lambda(std::function< optional< bool >()> &&f)
Trigger * turn_off_trigger_
void set_optimistic(bool optimistic)
void write_state(bool state) override
Trigger * get_turn_off_trigger() const
optional< std::function< optional< bool >)> > f_
Trigger * get_turn_on_trigger() const
bool assumed_state() override
Implementation of SPI Controller mode.
void set_assumed_state(bool assumed_state)
Trigger * turn_on_trigger_
float get_setup_priority() const override
void dump_config() override
bool state
The current reported state of the binary sensor.