readonly to HA config

This commit is contained in:
MichaelDvP
2022-03-23 12:22:49 +01:00
parent a0a3d8ef3a
commit 9b70985d32

View File

@@ -925,7 +925,7 @@ void Mqtt::publish_ha_sensor_config(DeviceValue & dv, const std::string & model,
dv.short_name, dv.short_name,
dv.uom, dv.uom,
remove, remove,
dv.has_cmd, dv.has_cmd && !dv.has_state(DeviceValueState::DV_READONLY),
dv.options, dv.options,
dv.options_size, dv.options_size,
dv_set_min, dv_set_min,