Fix deCONZ climate offset display if offset is zero (#59803)

This commit is contained in:
Kilian Lackhove
2021-11-17 07:29:37 +01:00
committed by GitHub
parent a68563cefd
commit a4826f4b69

View File

@@ -256,7 +256,7 @@ class DeconzThermostat(DeconzDevice, ClimateEntity):
"""Return the state attributes of the thermostat.""" """Return the state attributes of the thermostat."""
attr = {} attr = {}
if self._device.offset: if self._device.offset is not None:
attr[ATTR_OFFSET] = self._device.offset attr[ATTR_OFFSET] = self._device.offset
if self._device.valve is not None: if self._device.valve is not None: