From 427de0052451cf55aca6d9a466f1c10832f819e4 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 11 Mar 2024 15:36:18 -1000 Subject: [PATCH] Remove unnecessary use of async_run_job in script helper (#113118) The function being passed to `async_run` was always a callback --- homeassistant/helpers/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/script.py b/homeassistant/helpers/script.py index c246d625b3c..7a1f0bdb8da 100644 --- a/homeassistant/helpers/script.py +++ b/homeassistant/helpers/script.py @@ -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()