From 0ff8371953e29a1584fc5a7ab9db540f1c8a5d04 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 18 Jul 2023 20:52:43 +0200 Subject: [PATCH] Migrate Ambiclimate to use has entity name (#96561) --- homeassistant/components/ambiclimate/climate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ambiclimate/climate.py b/homeassistant/components/ambiclimate/climate.py index 516ed319d01..cf8b40916f3 100644 --- a/homeassistant/components/ambiclimate/climate.py +++ b/homeassistant/components/ambiclimate/climate.py @@ -154,17 +154,18 @@ class AmbiclimateEntity(ClimateEntity): _attr_target_temperature_step = 1 _attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE _attr_hvac_modes = [HVACMode.HEAT, HVACMode.OFF] + _attr_has_entity_name = True + _attr_name = None def __init__(self, heater, store): """Initialize the thermostat.""" self._heater = heater self._store = store self._attr_unique_id = heater.device_id - self._attr_name = heater.name self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, self.unique_id)}, manufacturer="Ambiclimate", - name=self.name, + name=heater.name, ) async def async_set_temperature(self, **kwargs: Any) -> None: