From 26bceae99d6ebfed3d76715113c6891a71d31fe6 Mon Sep 17 00:00:00 2001 From: Thiago Oliveira Date: Fri, 19 Mar 2021 17:20:09 -0700 Subject: [PATCH] Set zwave_js climate precision to tenths for F (#48133) --- homeassistant/components/zwave_js/climate.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zwave_js/climate.py b/homeassistant/components/zwave_js/climate.py index 78d76423378..fbe54e42d78 100644 --- a/homeassistant/components/zwave_js/climate.py +++ b/homeassistant/components/zwave_js/climate.py @@ -41,7 +41,12 @@ from homeassistant.components.climate.const import ( SUPPORT_TARGET_TEMPERATURE_RANGE, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT +from homeassistant.const import ( + ATTR_TEMPERATURE, + PRECISION_TENTHS, + TEMP_CELSIUS, + TEMP_FAHRENHEIT, +) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher import async_dispatcher_connect @@ -228,6 +233,11 @@ class ZWaveClimate(ZWaveBaseEntity, ClimateEntity): return TEMP_FAHRENHEIT return TEMP_CELSIUS + @property + def precision(self) -> float: + """Return the precision of 0.1.""" + return PRECISION_TENTHS + @property def hvac_mode(self) -> str: """Return hvac operation ie. heat, cool mode."""