Add optimistic config flag to modbus select. (#3267)

This commit is contained in:
stegm authored and GitHub committed 2022-03-10 08:40:43 +13:00
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