Update platform_example_light.markdown
This commit is contained in:
parent
59c5144a30
commit
be34ad1a70
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ class AwesomeLight(Light):
|
||||||
"""If light is on."""
|
"""If light is on."""
|
||||||
return self._light.is_on()
|
return self._light.is_on()
|
||||||
|
|
||||||
def turn_on(self, kwargs):
|
def turn_on(self, **kwargs):
|
||||||
"""Instruct the light to turn on.
|
"""Instruct the light to turn on.
|
||||||
|
|
||||||
You can skip the brightness part if your light does not support
|
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.brightness = kwargs.get(ATTR_BRIGHTNESS, 255)
|
||||||
self._light.turn_on()
|
self._light.turn_on()
|
||||||
|
|
||||||
def turn_off(self, kwargs):
|
def turn_off(self, **kwargs):
|
||||||
"""Instruct the light to turn off."""
|
"""Instruct the light to turn off."""
|
||||||
self._light.turn_off()
|
self._light.turn_off()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue