Upgrade pytradfri to 1.1 (#7290)

pull/7291/head
Paulus Schoutsen 2017-04-24 21:57:27 -07:00 committed by GitHub
parent 66a63b983e
commit fb297981af
3 changed files with 5 additions and 4 deletions

View File

@ -129,7 +129,8 @@ class Tradfri(Light):
"""Fetch new state data for this light."""
self._light.update()
# Handle Hue lights paired with the gatway
if self._light_data.hex_color is not None:
# Handle Hue lights paired with the gateway
# hex_color is 0 when bulb is unreachable
if self._light_data.hex_color not in (None, '0'):
self._rgb_color = color_util.rgb_hex_to_rgb_list(
self._light_data.hex_color)

View File

@ -21,7 +21,7 @@ DOMAIN = 'tradfri'
CONFIG_FILE = 'tradfri.conf'
KEY_CONFIG = 'tradfri_configuring'
KEY_GATEWAY = 'tradfri_gateway'
REQUIREMENTS = ['pytradfri==1.0']
REQUIREMENTS = ['pytradfri==1.1']
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({

View File

@ -664,7 +664,7 @@ python-wink==1.2.3
pytrackr==0.0.5
# homeassistant.components.tradfri
pytradfri==1.0
pytradfri==1.1
# homeassistant.components.device_tracker.unifi
pyunifi==2.0