From 30f35c087e1712588e63a166a357da9020319bbd Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 10 Feb 2024 23:55:35 +0100 Subject: [PATCH] Fix parsing of used services when encountering a repeat action --- custom_components/spook/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/spook/util.py b/custom_components/spook/util.py index afcce98e..a3ebc777 100644 --- a/custom_components/spook/util.py +++ b/custom_components/spook/util.py @@ -11,6 +11,7 @@ CONF_ELSE, CONF_ENABLED, CONF_PARALLEL, + CONF_REPEAT, CONF_SEQUENCE, CONF_SERVICE, CONF_THEN, @@ -278,6 +279,8 @@ def async_find_services_in_sequence( # noqa: C901 ) if action == cv.SCRIPT_ACTION_REPEAT: - called_services |= async_find_services_in_sequence(step[CONF_SEQUENCE]) + called_services |= async_find_services_in_sequence( + step[CONF_REPEAT][CONF_SEQUENCE] + ) return called_services