From 3c0369ed5944af1b82fc8418550861b6211aba03 Mon Sep 17 00:00:00 2001 From: schreyack Date: Tue, 1 Feb 2022 09:11:09 -0800 Subject: [PATCH] Fix honeywell hold mode (#65327) Co-authored-by: Martin Hjelmare --- homeassistant/components/honeywell/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index 57ce0125c93..f0e18953402 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -242,7 +242,7 @@ class HoneywellUSThermostat(ClimateEntity): # Get current mode mode = self._device.system_mode # 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 next_period_key = f"{mode.capitalize()}NextPeriod" # Get next period raw value