mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Fix variable name from script refactoring (#46503)
This commit is contained in:
parent
1444afbe5a
commit
aa061e5818
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user