From d1ed17e7db2feee8365d7f8cbc972f3d62f7f211 Mon Sep 17 00:00:00 2001 From: Johann Kellerman Date: Tue, 7 Jun 2016 23:00:09 +0200 Subject: [PATCH] Default parameter for .run() --- homeassistant/components/switch/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/template.py b/homeassistant/components/switch/template.py index ada27c21d0e..46900e8cc00 100644 --- a/homeassistant/components/switch/template.py +++ b/homeassistant/components/switch/template.py @@ -121,11 +121,11 @@ class SwitchTemplate(SwitchDevice): def turn_on(self, **kwargs): """Fire the on action.""" - self._on_script.run(True) + self._on_script.run() def turn_off(self, **kwargs): """Fire the off action.""" - self._off_script.run(True) + self._off_script.run() def update(self): """Update the state from the template."""