Ensure MQTT attributes are bound to the respective platform entity (#106316)
This commit is contained in:
parent
b2caf15434
commit
6d14c265b4
2 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue