mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Prevent issues with config update of "Timer" integration (unknown "restore" key) (#69332)
This commit is contained in:
parent
433a946f62
commit
da55c48cce
@ -388,5 +388,5 @@ class Timer(RestoreEntity):
|
|||||||
"""Handle when the config is updated."""
|
"""Handle when the config is updated."""
|
||||||
self._config = config
|
self._config = config
|
||||||
self._duration = cv.time_period_str(config[CONF_DURATION])
|
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()
|
self.async_write_ha_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user