Skip to content

Commit

Permalink
Use sensor availability vs >100 for humidity
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer committed Mar 9, 2023
1 parent bc44158 commit 86c94bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiosomecomfort/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def current_humidity(self) -> float | None:
"""The current measured ambient humidity"""
return (
self._data["uiData"].get("IndoorHumidity")
if self._data["uiData"].get("IndoorHumidity") <= 100
if self._data["uiData"].get("IndoorHumiditySensorAvailable")
and self._data["uiData"].get("IndoorHumiditySensorNotFault")
else None
)

Expand Down

0 comments on commit 86c94bc

Please sign in to comment.