Skip to content

Commit

Permalink
Update pytradfri to 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lwis committed Nov 11, 2017
1 parent 16dd90a commit c5fbfd9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
6 changes: 0 additions & 6 deletions homeassistant/components/light/tradfri.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ def async_turn_on(self, **kwargs):
keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10

if ATTR_BRIGHTNESS in kwargs:
if kwargs[ATTR_BRIGHTNESS] == 255:
kwargs[ATTR_BRIGHTNESS] = 254

self.hass.async_add_job(self._api(
self._group.set_dimmer(kwargs[ATTR_BRIGHTNESS], **keys)))
else:
Expand Down Expand Up @@ -266,9 +263,6 @@ def async_turn_on(self, **kwargs):
keys['transition_time'] = int(kwargs[ATTR_TRANSITION]) * 10

if ATTR_BRIGHTNESS in kwargs:
if kwargs[ATTR_BRIGHTNESS] == 255:
kwargs[ATTR_BRIGHTNESS] = 254

self.hass.async_add_job(self._api(
self._light_control.set_dimmer(kwargs[ATTR_BRIGHTNESS],
**keys)))
Expand Down
6 changes: 1 addition & 5 deletions homeassistant/components/tradfri.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
from homeassistant.const import CONF_HOST
from homeassistant.components.discovery import SERVICE_IKEA_TRADFRI

REQUIREMENTS = ['pytradfri==4.0.1',
'DTLSSocket==0.1.4',
'https://github.com/chrysn/aiocoap/archive/'
'3286f48f0b949901c8b5c04c0719dc54ab63d431.zip'
'#aiocoap==0.3']
REQUIREMENTS = ['pytradfri[async]==4.0.3']

DOMAIN = 'tradfri'
GATEWAY_IDENTITY = 'homeassistant'
Expand Down
8 changes: 1 addition & 7 deletions requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ certifi>=2017.4.17
# homeassistant.components.bbb_gpio
# Adafruit_BBIO==1.0.0

# homeassistant.components.tradfri
# DTLSSocket==0.1.4

# homeassistant.components.doorbird
DoorBirdPy==0.0.4

Expand Down Expand Up @@ -344,9 +341,6 @@ httplib2==0.10.3
# homeassistant.components.media_player.braviatv
https://github.com/aparraga/braviarc/archive/0.3.7.zip#braviarc==0.3.7

# homeassistant.components.tradfri
# https://github.com/chrysn/aiocoap/archive/3286f48f0b949901c8b5c04c0719dc54ab63d431.zip#aiocoap==0.3

# homeassistant.components.media_player.spotify
https://github.com/happyleavesaoc/spotipy/archive/544614f4b1d508201d363e84e871f86c90aa26b2.zip#spotipy==2.4.4

Expand Down Expand Up @@ -896,7 +890,7 @@ pythonwhois==2.4.3
pytrackr==0.0.5

# homeassistant.components.tradfri
pytradfri==4.0.1
# pytradfri[async]==4.0.3

# homeassistant.components.device_tracker.unifi
pyunifi==2.13
Expand Down
3 changes: 1 addition & 2 deletions script/gen_requirements_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
'envirophat',
'i2csense',
'credstash',
'aiocoap', # Temp, will be removed when Python 3.4 is no longer supported.
'DTLSSocket' # Requires cython.
'pytradfri'
)

TEST_REQUIREMENTS = (
Expand Down

0 comments on commit c5fbfd9

Please sign in to comment.