mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Default parameter for .run()
This commit is contained in:
parent
d5f9c1bc01
commit
d1ed17e7db
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user