From 4ef581622decde2a15d45ff6391b01f0fb373537 Mon Sep 17 00:00:00 2001 From: Sly Gryphon Date: Thu, 16 Jul 2020 10:05:31 +1000 Subject: [PATCH] Feature/izone temperature precision (#37669) * Change to precision tenths for current temp --- homeassistant/components/izone/climate.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index 69c005b345b..cd14d1cadcf 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -26,6 +26,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE, CONF_EXCLUDE, PRECISION_HALVES, + PRECISION_TENTHS, TEMP_CELSIUS, ) from homeassistant.core import callback @@ -250,7 +251,7 @@ class ControllerDevice(ClimateEntity): @property def precision(self) -> float: """Return the precision of the system.""" - return PRECISION_HALVES + return PRECISION_TENTHS @property def device_state_attributes(self): @@ -266,7 +267,7 @@ class ControllerDevice(ClimateEntity): self.hass, self._controller.temp_setpoint, self.temperature_unit, - self.precision, + PRECISION_HALVES, ), } @@ -494,7 +495,7 @@ class ZoneDevice(ClimateEntity): @property def precision(self): """Return the precision of the system.""" - return PRECISION_HALVES + return PRECISION_TENTHS @property def hvac_mode(self):