Skip to content

Commit

Permalink
Fix brightness issue home-assistant#8744. (home-assistant#8755)
Browse files Browse the repository at this point in the history
  • Loading branch information
gollo authored and dethpickle committed Aug 18, 2017
1 parent 34f3ab9 commit 2deaa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/light/tplink.py
Original file line number Diff line number Diff line change
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 2deaa2e

Please sign in to comment.