Skip to content

Commit

Permalink
Fix brightness issue #8744. (#8755)
Browse files Browse the repository at this point in the history
  • Loading branch information
gollo authored and balloob committed Jul 31, 2017
1 parent e525d13 commit 9919eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/light/tplink.py
Expand Up @@ -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):
Expand Down

0 comments on commit 9919eec

Please sign in to comment.