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