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

This commit is contained in:
stegm
2022-03-09 20:40:43 +01:00
committed by Jesse Hills
parent efa8f0730d
commit 06a3505698
3 changed files with 8 additions and 1 deletions
@@ -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