Fix absolute humidity sensor on HmIP-WGT glass thermostats (#162455)

This commit is contained in:
Christian Lackas
2026-02-13 19:23:37 +00:00
committed by Franck Nijhof
parent 61ed959e8e
commit 0b5e55b923
@@ -556,16 +556,8 @@ class HomematicipAbsoluteHumiditySensor(HomematicipGenericEntity, SensorEntity):
@property
def native_value(self) -> float | None:
"""Return the state."""
if self.functional_channel is None:
return None
value = self.functional_channel.vaporAmount
# Handle case where value might be None
if (
self.functional_channel.vaporAmount is None
or self.functional_channel.vaporAmount == ""
):
value = self._device.vaporAmount
if value is None or value == "":
return None
return round(value, 3)