3#if defined(USE_ESP_IDF) && defined(USE_SENDSPIN_SWITCH)
24 this->
parent_->set_unpaired_access_enabled(state);
void write_state(bool state) override
void dump_config() override
bool state
The current reported state of the binary sensor.
void restore()
Drive the switch to the state its restore mode yields, through control(), so inversion and write_stat...
void publish_state(bool state)
Publish a state to the front-end from the back-end.
ESPHOME_LOG_TAG(TAG, "sendspin.image")
ESPPreferences * global_preferences
bool sync()
Commit pending writes to flash.