9 static const char *
const TAG =
"safe_mode.switch";
20 ESP_LOGI(TAG,
"Restarting device in safe mode...");
void write_state(bool state) override
SafeModeComponent * safe_mode_component_
void set_safe_mode_pending(const bool &pending)
Set to true if the next startup will enter safe mode.
void dump_config() override
Application App
Global storage of Application pointer - only one Application can exist.
void set_safe_mode(SafeModeComponent *safe_mode_component)
SafeModeComponent provides a safe way to recover from repeated boot failures.
Implementation of SPI Controller mode.
void publish_state(bool state)
Publish a state to the front-end from the back-end.
bool state
The current reported state of the binary sensor.
void IRAM_ATTR HOT delay(uint32_t ms)