Fix error on empty UOM for ISY994 Climate Device (#36454)
This commit is contained in:
parent
f170c80bea
commit
04231bcb54
2 changed files with 3 additions and 3 deletions
|
@ -133,7 +133,7 @@ class ISYThermostatEntity(ISYNodeEntity, ClimateEntity):
|
|||
# Which state values used depends on the mode property's UOM:
|
||||
uom = hvac_mode.uom
|
||||
# Handle special case for ISYv4 Firmware:
|
||||
if uom == UOM_ISYV4_NONE:
|
||||
if uom in (UOM_ISYV4_NONE, ""):
|
||||
uom = (
|
||||
UOM_HVAC_MODE_INSTEON
|
||||
if self._node.protocol == PROTO_INSTEON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue