Fix error on empty UOM for ISY994 Climate Device (#36454)

This commit is contained in:
shbatm 2020-06-04 17:22:35 -05:00 committed by GitHub
parent f170c80bea
commit 04231bcb54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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