mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Upgrade pytradfri to 1.1 (#7290)
This commit is contained in:
parent
66a63b983e
commit
fb297981af
@ -129,7 +129,8 @@ class Tradfri(Light):
|
|||||||
"""Fetch new state data for this light."""
|
"""Fetch new state data for this light."""
|
||||||
self._light.update()
|
self._light.update()
|
||||||
|
|
||||||
# Handle Hue lights paired with the gatway
|
# Handle Hue lights paired with the gateway
|
||||||
if self._light_data.hex_color is not None:
|
# 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._rgb_color = color_util.rgb_hex_to_rgb_list(
|
||||||
self._light_data.hex_color)
|
self._light_data.hex_color)
|
||||||
|
@ -21,7 +21,7 @@ DOMAIN = 'tradfri'
|
|||||||
CONFIG_FILE = 'tradfri.conf'
|
CONFIG_FILE = 'tradfri.conf'
|
||||||
KEY_CONFIG = 'tradfri_configuring'
|
KEY_CONFIG = 'tradfri_configuring'
|
||||||
KEY_GATEWAY = 'tradfri_gateway'
|
KEY_GATEWAY = 'tradfri_gateway'
|
||||||
REQUIREMENTS = ['pytradfri==1.0']
|
REQUIREMENTS = ['pytradfri==1.1']
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({
|
CONFIG_SCHEMA = vol.Schema({
|
||||||
DOMAIN: vol.Schema({
|
DOMAIN: vol.Schema({
|
||||||
|
@ -664,7 +664,7 @@ python-wink==1.2.3
|
|||||||
pytrackr==0.0.5
|
pytrackr==0.0.5
|
||||||
|
|
||||||
# homeassistant.components.tradfri
|
# homeassistant.components.tradfri
|
||||||
pytradfri==1.0
|
pytradfri==1.1
|
||||||
|
|
||||||
# homeassistant.components.device_tracker.unifi
|
# homeassistant.components.device_tracker.unifi
|
||||||
pyunifi==2.0
|
pyunifi==2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user