From da55c48cce0e9ef4e279a728009e6a37ba2a1edb Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Tue, 5 Apr 2022 21:22:03 +0200 Subject: [PATCH] Prevent issues with config update of "Timer" integration (unknown "restore" key) (#69332) --- homeassistant/components/timer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/timer/__init__.py b/homeassistant/components/timer/__init__.py index 215aa8577f7..e5564736c74 100644 --- a/homeassistant/components/timer/__init__.py +++ b/homeassistant/components/timer/__init__.py @@ -388,5 +388,5 @@ class Timer(RestoreEntity): """Handle when the config is updated.""" self._config = config self._duration = cv.time_period_str(config[CONF_DURATION]) - self._restore = config[CONF_RESTORE] + self._restore = config.get(CONF_RESTORE, DEFAULT_RESTORE) self.async_write_ha_state()