mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 02:19:31 +00:00
Fix queued script not updating current attribute when queuing (#38432)
This commit is contained in:
@@ -176,8 +176,6 @@ class _ScriptRun:
|
||||
try:
|
||||
if self._stop.is_set():
|
||||
return
|
||||
self._script.last_triggered = utcnow()
|
||||
self._changed()
|
||||
self._log("Running script")
|
||||
for self._step, self._action in enumerate(self._script.sequence):
|
||||
if self._stop.is_set():
|
||||
@@ -797,6 +795,8 @@ class Script:
|
||||
self._hass, self, cast(dict, variables), context, self._log_exceptions
|
||||
)
|
||||
self._runs.append(run)
|
||||
self.last_triggered = utcnow()
|
||||
self._changed()
|
||||
|
||||
try:
|
||||
await asyncio.shield(run.async_run())
|
||||
|
||||
Reference in New Issue
Block a user