mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 23:41:45 +01:00
try this
This commit is contained in:
parent
056025c5d0
commit
55c0ab50ed
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ namespace lora {
|
|||
static const char *const TAG_SWITCH = "lora.switch";
|
||||
|
||||
void LoraSwitch::write_state(bool state) {
|
||||
this->parent_->digital_write(this->pin_, state != this->inverted_);
|
||||
this->parent_->digital_write(this->pin_, state);
|
||||
// finally set it
|
||||
this->publish_state(state);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <vector>
|
||||
#include "esphome/core/component.h"
|
||||
#include "esphome/components/uart/uart.h"
|
||||
#include "esphome/components/pcf8574/pcf8574.h"
|
||||
#include "esphome/components/switch/switch.h"
|
||||
#include "esphome/core/helpers.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
|
Loading…
Reference in a new issue