mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update platform_example_light.markdown
This commit is contained in:
parent
59c5144a30
commit
be34ad1a70
@ -75,7 +75,7 @@ class AwesomeLight(Light):
|
||||
"""If light is on."""
|
||||
return self._light.is_on()
|
||||
|
||||
def turn_on(self, kwargs):
|
||||
def turn_on(self, **kwargs):
|
||||
"""Instruct the light to turn on.
|
||||
|
||||
You can skip the brightness part if your light does not support
|
||||
@ -84,7 +84,7 @@ class AwesomeLight(Light):
|
||||
self._light.brightness = kwargs.get(ATTR_BRIGHTNESS, 255)
|
||||
self._light.turn_on()
|
||||
|
||||
def turn_off(self, kwargs):
|
||||
def turn_off(self, **kwargs):
|
||||
"""Instruct the light to turn off."""
|
||||
self._light.turn_off()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user