1
mirror of https://github.com/home-assistant/core synced 2024-08-28 03:36:46 +02:00

Ensure MQTT attributes are bound to the respective platform entity (#106316)

This commit is contained in:
J. Nick Koston 2023-12-23 10:39:25 -10:00 committed by GitHub
parent b2caf15434
commit 6d14c265b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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: