From be34ad1a706463404845f8bb1b46687da3d53fe4 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 10 May 2016 10:14:28 -0700 Subject: [PATCH] Update platform_example_light.markdown --- source/developers/platform_example_light.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/developers/platform_example_light.markdown b/source/developers/platform_example_light.markdown index 77c8278c7d4..7d022c024da 100644 --- a/source/developers/platform_example_light.markdown +++ b/source/developers/platform_example_light.markdown @@ -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()