Fix threading error in scripts with repeat or choose actions (#62168)

This commit is contained in:
Erik Montnemery
2021-12-17 11:43:00 +01:00
committed by Franck Nijhof
parent 614529d7c3
commit c445e93d45
+1
View File
@@ -1052,6 +1052,7 @@ class Script:
if self._change_listener_job:
self._hass.async_run_hass_job(self._change_listener_job)
@callback
def _chain_change_listener(self, sub_script: Script) -> None:
if sub_script.is_running:
self.last_action = sub_script.last_action