Remove unnecessary use of async_run_job in script helper (#113118)

The function being passed to `async_run` was always a callback
This commit is contained in:
J. Nick Koston 2024-03-11 15:36:18 -10:00 committed by GitHub
parent 17209525cb
commit 427de00524
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1600,7 +1600,7 @@ class Script:
await self.async_stop(update_state=False, spare=run)
if started_action:
self._hass.async_run_job(started_action)
started_action()
self.last_triggered = utcnow()
self._changed()