Add optimistic config flag to modbus select. (#3267)
This commit is contained in:
1 parent
3208c8ed1e
commit
aafdfa933e
3 files changed
+8
-1
No files matched your search
@@ -80,6 +80,9 @@ void ModbusSelect::control(const std::string &value) {
|
||||
}
|
||||
|
||||
parent_->queue_command(write_cmd);
|
||||
|
||||
if (this->optimistic_)
|
||||
this->publish_state(value);
|
||||
}
|
||||
|
||||
} // namespace modbus_controller
|
||||
|
||||
Reference in new issue
Block a user