diff --git a/esphome/components/lora/lora.h b/esphome/components/lora/lora.h index 3da1b79e59..29daac6cb6 100644 --- a/esphome/components/lora/lora.h +++ b/esphome/components/lora/lora.h @@ -24,7 +24,6 @@ enum ModeType { MODE_3_CONFIGURATION = 3, MODE_3_PROGRAM = 3, MODE_3_SLEEP = 3, - MODE_INIT = 0xFF }; class Lora : public PollingComponent, public uart::UARTDevice { public: diff --git a/esphome/components/lora/switch/switch_lora.cpp b/esphome/components/lora/switch/switch_lora.cpp index 617b87148a..ba026799d1 100644 --- a/esphome/components/lora/switch/switch_lora.cpp +++ b/esphome/components/lora/switch/switch_lora.cpp @@ -4,7 +4,7 @@ namespace esphome { namespace lora { static const char *const TAG_SWITCH = "lora.switch"; -void LoraSwitch::write_state(bool value) { this->parent_->digital_write(this->pin_, value != this->inverted_); } +void LoraSwitch::write_state(bool state) { this->parent_->digital_write(this->pin_, state != this->inverted_); } void LoraSwitch::dump_config() { LOG_SWITCH(TAG_SWITCH, "Lora Switch", this); } } // namespace lora } // namespace esphome