Default parameter for .run()

This commit is contained in:
Johann Kellerman 2016-06-07 23:00:09 +02:00
parent d5f9c1bc01
commit d1ed17e7db

View File

@ -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."""