From c2112750911a780303d1c0740a99989264af4fab Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Thu, 22 Oct 2020 10:06:16 +0200 Subject: [PATCH] Fix precision of climate devices in devolo Home Control (#41832) --- .../components/devolo_home_control/climate.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/devolo_home_control/climate.py b/homeassistant/components/devolo_home_control/climate.py index f243b5c508d..0cc2340dc18 100644 --- a/homeassistant/components/devolo_home_control/climate.py +++ b/homeassistant/components/devolo_home_control/climate.py @@ -9,7 +9,7 @@ from homeassistant.components.climate import ( ClimateEntity, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import PRECISION_HALVES +from homeassistant.const import PRECISION_HALVES, PRECISION_TENTHS from homeassistant.helpers.typing import HomeAssistantType from .const import DOMAIN @@ -60,9 +60,14 @@ class DevoloClimateDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, ClimateEntit @property def target_temperature(self) -> Optional[float]: - """Return the current temperature.""" + """Return the target temperature.""" return self._value + @property + def target_temperature_step(self) -> float: + """Return the precision of the target temperature.""" + return PRECISION_HALVES + @property def hvac_mode(self) -> str: """Return the supported HVAC mode.""" @@ -86,7 +91,7 @@ class DevoloClimateDeviceEntity(DevoloMultiLevelSwitchDeviceEntity, ClimateEntit @property def precision(self) -> float: """Return the precision of the set temperature.""" - return PRECISION_HALVES + return PRECISION_TENTHS @property def supported_features(self):