From 7991e2df5f3a50f53ce467a80a5670c8510db2fe Mon Sep 17 00:00:00 2001 From: Sean Gollschewsky Date: Mon, 31 Jul 2017 17:02:04 +0100 Subject: [PATCH] Fix brightness issue #8744. (#8755) --- homeassistant/components/light/tplink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/tplink.py b/homeassistant/components/light/tplink.py index 333661870d1..78a4d537dab 100644 --- a/homeassistant/components/light/tplink.py +++ b/homeassistant/components/light/tplink.py @@ -31,7 +31,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): def brightness_to_percentage(byt): """Convert brightness from absolute 0..255 to percentage.""" - return (byt*100.0)/255.0 + return int((byt*100.0)/255.0) def brightness_from_percentage(percent):