Merge pull request #856 from w1ll1am23/Wink_power_strip_support

Wink power strip support
This commit is contained in:
Paulus Schoutsen committed 2016-01-14 19:23:41 -08:00
commit bed9b038c8
6 files changed
+12 -9

No files matched your search

+3 -1
View File
@@ -11,7 +11,7 @@ import logging
from homeassistant.components.wink import WinkToggleDevice
from homeassistant.const import CONF_ACCESS_TOKEN
REQUIREMENTS = ['python-wink==0.3.1']
REQUIREMENTS = ['python-wink==0.4.1']
def setup_platform(hass, config, add_devices, discovery_info=None):
@@ -30,3 +30,5 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
pywink.set_bearer_token(token)
add_devices(WinkToggleDevice(switch) for switch in pywink.get_switches())
add_devices(WinkToggleDevice(switch) for switch in
pywink.get_powerstrip_outlets())