Fix honeywell hold mode (#65327)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
schreyack 2022-02-01 09:11:09 -08:00 committed by GitHub
parent 3697f5611c
commit 3c0369ed59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ class HoneywellUSThermostat(ClimateEntity):
# Get current mode # Get current mode
mode = self._device.system_mode mode = self._device.system_mode
# Set hold if this is not the case # Set hold if this is not the case
if getattr(self._device, f"hold_{mode}") is False: if getattr(self._device, f"hold_{mode}", None) is False:
# Get next period key # Get next period key
next_period_key = f"{mode.capitalize()}NextPeriod" next_period_key = f"{mode.capitalize()}NextPeriod"
# Get next period raw value # Get next period raw value