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.uom,
remove,
dv.has_cmd,
dv.has_cmd && !dv.has_state(DeviceValueState::DV_READONLY),
dv.options,
dv.options_size,
dv_set_min,