mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Ensure MQTT attributes are bound to the respective platform entity (#106316)
This commit is contained in:
parent
b2caf15434
commit
6d14c265b4
@ -417,8 +417,8 @@ class MqttTemperatureControlEntity(MqttEntity, ABC):
|
||||
climate and water_heater platforms.
|
||||
"""
|
||||
|
||||
_attr_target_temperature_low: float | None = None
|
||||
_attr_target_temperature_high: float | None = None
|
||||
_attr_target_temperature_low: float | None
|
||||
_attr_target_temperature_high: float | None
|
||||
|
||||
_feature_preset_mode: bool = False
|
||||
_optimistic: bool
|
||||
@ -608,6 +608,8 @@ class MqttClimate(MqttTemperatureControlEntity, ClimateEntity):
|
||||
_default_name = DEFAULT_NAME
|
||||
_entity_id_format = climate.ENTITY_ID_FORMAT
|
||||
_attributes_extra_blocked = MQTT_CLIMATE_ATTRIBUTES_BLOCKED
|
||||
_attr_target_temperature_low: float | None = None
|
||||
_attr_target_temperature_high: float | None = None
|
||||
|
||||
@staticmethod
|
||||
def config_schema() -> vol.Schema:
|
||||
|
@ -186,6 +186,8 @@ class MqttWaterHeater(MqttTemperatureControlEntity, WaterHeaterEntity):
|
||||
_default_name = DEFAULT_NAME
|
||||
_entity_id_format = water_heater.ENTITY_ID_FORMAT
|
||||
_attributes_extra_blocked = MQTT_WATER_HEATER_ATTRIBUTES_BLOCKED
|
||||
_attr_target_temperature_low: float | None = None
|
||||
_attr_target_temperature_high: float | None = None
|
||||
|
||||
@staticmethod
|
||||
def config_schema() -> vol.Schema:
|
||||
|
Loading…
x
Reference in New Issue
Block a user