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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: