From 2bbce7ad229be049018032c78e0688c8bdccb4e9 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Tue, 18 Jul 2023 09:55:26 +0200 Subject: [PATCH] Migrate Senz to has entity name (#96752) --- homeassistant/components/senz/climate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/senz/climate.py b/homeassistant/components/senz/climate.py index f52a94d2c9a..0c49368001d 100644 --- a/homeassistant/components/senz/climate.py +++ b/homeassistant/components/senz/climate.py @@ -43,6 +43,8 @@ class SENZClimate(CoordinatorEntity, ClimateEntity): _attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE _attr_max_temp = 35 _attr_min_temp = 5 + _attr_has_entity_name = True + _attr_name = None def __init__( self, @@ -52,7 +54,6 @@ class SENZClimate(CoordinatorEntity, ClimateEntity): """Init SENZ climate.""" super().__init__(coordinator) self._thermostat = thermostat - self._attr_name = thermostat.name self._attr_unique_id = thermostat.serial_number self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, thermostat.serial_number)},