From aa061e5818ff01203eb91cc957b8e2d1d71afe38 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 14 Feb 2021 10:52:18 -1000 Subject: [PATCH] Fix variable name from script refactoring (#46503) --- homeassistant/helpers/script.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/helpers/script.py b/homeassistant/helpers/script.py index 3cc8348961f..69ba082e573 100644 --- a/homeassistant/helpers/script.py +++ b/homeassistant/helpers/script.py @@ -44,6 +44,7 @@ from homeassistant.const import ( CONF_REPEAT, CONF_SCENE, CONF_SEQUENCE, + CONF_SERVICE, CONF_TARGET, CONF_TIMEOUT, CONF_UNTIL, @@ -438,9 +439,9 @@ class _ScriptRun: ) running_script = ( - params["domain"] == "automation" - and params["service_name"] == "trigger" - or params["domain"] in ("python_script", "script") + params[CONF_DOMAIN] == "automation" + and params[CONF_SERVICE] == "trigger" + or params[CONF_DOMAIN] in ("python_script", "script") ) # If this might start a script then disable the call timeout. # Otherwise use the normal service call limit.