mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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 (
|
from pyisy.constants import (
|
||||||
CMD_CLIMATE_FAN_SETTING,
|
CMD_CLIMATE_FAN_SETTING,
|
||||||
CMD_CLIMATE_MODE,
|
CMD_CLIMATE_MODE,
|
||||||
|
ISY_VALUE_UNKNOWN,
|
||||||
PROP_HEAT_COOL_STATE,
|
PROP_HEAT_COOL_STATE,
|
||||||
PROP_HUMIDITY,
|
PROP_HUMIDITY,
|
||||||
PROP_SETPOINT_COOL,
|
PROP_SETPOINT_COOL,
|
||||||
@ -116,6 +117,8 @@ class ISYThermostatEntity(ISYNodeEntity, ClimateEntity):
|
|||||||
"""Return the current humidity."""
|
"""Return the current humidity."""
|
||||||
if not (humidity := self._node.aux_properties.get(PROP_HUMIDITY)):
|
if not (humidity := self._node.aux_properties.get(PROP_HUMIDITY)):
|
||||||
return None
|
return None
|
||||||
|
if humidity == ISY_VALUE_UNKNOWN:
|
||||||
|
return None
|
||||||
return int(humidity.value)
|
return int(humidity.value)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user