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 Franck Nijhof
parent 614529d7c3
commit c445e93d45
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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