Base class for all switches.
void write_state(bool state) override
SafeModeComponent * safe_mode_component_
void dump_config() override
void set_safe_mode(SafeModeComponent *safe_mode_component)
SafeModeComponent provides a safe way to recover from repeated boot failures.
Implementation of SPI Controller mode.
bool state
The current reported state of the binary sensor.