Fix variable name from script refactoring (#46503)

This commit is contained in:
J. Nick Koston 2021-02-14 10:52:18 -10:00 committed by GitHub
parent 1444afbe5a
commit aa061e5818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ from homeassistant.const import (
CONF_REPEAT, CONF_REPEAT,
CONF_SCENE, CONF_SCENE,
CONF_SEQUENCE, CONF_SEQUENCE,
CONF_SERVICE,
CONF_TARGET, CONF_TARGET,
CONF_TIMEOUT, CONF_TIMEOUT,
CONF_UNTIL, CONF_UNTIL,
@ -438,9 +439,9 @@ class _ScriptRun:
) )
running_script = ( running_script = (
params["domain"] == "automation" params[CONF_DOMAIN] == "automation"
and params["service_name"] == "trigger" and params[CONF_SERVICE] == "trigger"
or params["domain"] in ("python_script", "script") or params[CONF_DOMAIN] in ("python_script", "script")
) )
# If this might start a script then disable the call timeout. # If this might start a script then disable the call timeout.
# Otherwise use the normal service call limit. # Otherwise use the normal service call limit.