7#ifdef IOHOME_LR1121_BOOTLOADER_UPDATE
9#include "esphome/core/log.h"
14static const char *
const TAG =
"home_io_control.lr1121_bootloader_switch";
16void IOHomeLr1121BootloaderRewriteSwitch::setup() { this->publish_state(
false); }
18void IOHomeLr1121BootloaderRewriteSwitch::write_state(
bool state) {
19 if (this->parent_ !=
nullptr)
20 this->parent_->set_bootloader_rewrite_allowed(state);
21 this->publish_state(state);
24void IOHomeLr1121BootloaderRewriteSwitch::dump_config() {
29 LOG_SWITCH(
"",
"LR1121 Bootloader Rewrite (Irreversible)",
this);
static constexpr const char * TAG