FIX: Unnecessary flash writes by ModbusSwitch component (#3648)
This commit is contained in:
1 parent
a59ce7bfa2
commit
c55e01ff3f
11 files changed
+114
-144
No files matched your search
@@ -6,11 +6,7 @@ namespace modbus_controller {
|
||||
|
||||
static const char *const TAG = "modbus_controller.switch";
|
||||
|
||||
void ModbusSwitch::setup() {
|
||||
// value isn't required
|
||||
// without it we crash on save
|
||||
this->get_initial_state();
|
||||
}
|
||||
void ModbusSwitch::setup() {}
|
||||
void ModbusSwitch::dump_config() { LOG_SWITCH(TAG, "Modbus Controller Switch", this); }
|
||||
|
||||
void ModbusSwitch::parse_and_publish(const std::vector<uint8_t> &data) {
|
||||
|
||||
Reference in new issue
Block a user