From a4826f4b6961f21bb8f05f86f36474637561733d Mon Sep 17 00:00:00 2001 From: Kilian Lackhove Date: Wed, 17 Nov 2021 07:29:37 +0100 Subject: [PATCH] Fix deCONZ climate offset display if offset is zero (#59803) --- homeassistant/components/deconz/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/deconz/climate.py b/homeassistant/components/deconz/climate.py index b9401e6d5a3..4641bd26d43 100644 --- a/homeassistant/components/deconz/climate.py +++ b/homeassistant/components/deconz/climate.py @@ -256,7 +256,7 @@ class DeconzThermostat(DeconzDevice, ClimateEntity): """Return the state attributes of the thermostat.""" attr = {} - if self._device.offset: + if self._device.offset is not None: attr[ATTR_OFFSET] = self._device.offset if self._device.valve is not None: