From dc8267b05a5c81c484b10d0ab11daf88cbdfdfe4 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Mon, 17 Jul 2023 12:09:43 +0200 Subject: [PATCH] Migrate NuHeat to has entity name (#96742) --- homeassistant/components/nuheat/climate.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/nuheat/climate.py b/homeassistant/components/nuheat/climate.py index aa692153215..b2bc66b60c0 100644 --- a/homeassistant/components/nuheat/climate.py +++ b/homeassistant/components/nuheat/climate.py @@ -75,6 +75,8 @@ class NuHeatThermostat(CoordinatorEntity, ClimateEntity): _attr_supported_features = ( ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE ) + _attr_has_entity_name = True + _attr_name = None def __init__(self, coordinator, thermostat, temperature_unit): """Initialize the thermostat.""" @@ -84,11 +86,6 @@ class NuHeatThermostat(CoordinatorEntity, ClimateEntity): self._schedule_mode = None self._target_temperature = None - @property - def name(self): - """Return the name of the thermostat.""" - return self._thermostat.room - @property def temperature_unit(self) -> str: """Return the unit of measurement."""