21 void setup()
override;
23#ifdef USE_GPIO_SWITCH_INTERLOCK
35#ifdef USE_GPIO_SWITCH_INTERLOCK
Lightweight read-only view over a const array stored in RODATA (will typically be in flash memory).
void dump_config() override
uint32_t interlock_wait_time_
float get_setup_priority() const override
ConstVector< Switch * > interlock_
void set_interlock(Switch *const *interlock, size_t count)
Codegen only: the table must outlive this switch; it may list this switch, which is skipped.
void set_interlock_wait_time(uint32_t interlock_wait_time)
void write_state(bool state) override
void set_pin(GPIOPin *pin)
Base class for all switches.
bool state
The current reported state of the binary sensor.