From 69f6a115b6689b7862d7c2fda10eb3ef699305df Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Thu, 7 Sep 2023 17:28:13 +0200 Subject: [PATCH] Move shorthand attributes out of constructor in Sensibo (#99834) Use shorthand attributes in Sensibo --- homeassistant/components/sensibo/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensibo/climate.py b/homeassistant/components/sensibo/climate.py index da86ba8fe24..3529627b497 100644 --- a/homeassistant/components/sensibo/climate.py +++ b/homeassistant/components/sensibo/climate.py @@ -180,6 +180,8 @@ class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity): """Representation of a Sensibo device.""" _attr_name = None + _attr_precision = PRECISION_TENTHS + _attr_translation_key = "climate_device" def __init__( self, coordinator: SensiboDataUpdateCoordinator, device_id: str @@ -193,8 +195,6 @@ class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity): else UnitOfTemperature.FAHRENHEIT ) self._attr_supported_features = self.get_features() - self._attr_precision = PRECISION_TENTHS - self._attr_translation_key = "climate_device" def get_features(self) -> ClimateEntityFeature: """Get supported features."""