mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Check ISY994 climate for unknown humidity on Z-Wave Thermostat (#72670)
This commit is contained in:
parent
d59ecc4c96
commit
d603952872
@ -6,6 +6,7 @@ from typing import Any
|
||||
from pyisy.constants import (
|
||||
CMD_CLIMATE_FAN_SETTING,
|
||||
CMD_CLIMATE_MODE,
|
||||
ISY_VALUE_UNKNOWN,
|
||||
PROP_HEAT_COOL_STATE,
|
||||
PROP_HUMIDITY,
|
||||
PROP_SETPOINT_COOL,
|
||||
@ -116,6 +117,8 @@ class ISYThermostatEntity(ISYNodeEntity, ClimateEntity):
|
||||
"""Return the current humidity."""
|
||||
if not (humidity := self._node.aux_properties.get(PROP_HUMIDITY)):
|
||||
return None
|
||||
if humidity == ISY_VALUE_UNKNOWN:
|
||||
return None
|
||||
return int(humidity.value)
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user