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

This commit is contained in:
Erik Montnemery 2021-12-17 11:41:54 +01:00 committed by GitHub
parent 85c122f3e5
commit 112e259437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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