Skip to content

Commit

Permalink
Re-add supported features. (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwis authored Mar 22, 2018
1 parent 177ee74 commit a8ab326
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pytradfri/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ class LightControl:
def __init__(self, device):
self._device = device

self.can_set_temp = None
self.can_set_color = None

if 'WS' in self._device.device_info.model_number:
self.can_set_temp = True

if 'CWS' in self._device.device_info.model_number:
self.can_set_color = True

self.min_mireds = RANGE_MIREDS[0]
self.max_mireds = RANGE_MIREDS[1]

@property
def raw(self):
"""Return raw data that it represents."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

VERSION = "5.4.0"
VERSION = "5.4.1"
DOWNLOAD_URL = \
'https://github.com/ggravlingen/pytradfri/archive/{}.zip'.format(VERSION)

Expand Down

0 comments on commit a8ab326

Please sign in to comment.