From b961b5037fa4c671299eb6d5ea5b250a1bc69c03 Mon Sep 17 00:00:00 2001 From: Andrew Thigpen Date: Sun, 21 Feb 2016 11:11:35 -0600 Subject: [PATCH 1/2] Only turn on scripts that are not currently running. Prevents an errant API call from advancing a currently executing delay step before it should. --- homeassistant/components/script.py | 8 +++++-- tests/components/test_script.py | 37 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/script.py b/homeassistant/components/script.py index 59b55a1289b..dbb145ebb1d 100644 --- a/homeassistant/components/script.py +++ b/homeassistant/components/script.py @@ -70,8 +70,12 @@ def setup(hass, config): """ Execute a service call to script.