diff --git a/homeassistant/components/switch/wink.py b/homeassistant/components/switch/wink.py index e64245c430d..297777d3145 100644 --- a/homeassistant/components/switch/wink.py +++ b/homeassistant/components/switch/wink.py @@ -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()) diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 9f28183a149..bc8e83b291c 100644 --- a/homeassistant/components/wink.py +++ b/homeassistant/components/wink.py @@ -37,9 +37,10 @@ def setup(hass, config): # Load components for the devices in the Wink that we support for component_name, func_exists, discovery_type in ( ('light', pywink.get_bulbs, DISCOVER_LIGHTS), - ('switch', pywink.get_switches, DISCOVER_SWITCHES), - ('sensor', lambda: pywink.get_sensors or pywink.get_eggtrays, - DISCOVER_SENSORS), + ('switch', lambda: pywink.get_switches or + pywink.get_powerstrip_outlets, DISCOVER_SWITCHES), + ('sensor', lambda: pywink.get_sensors or + pywink.get_eggtrays, DISCOVER_SENSORS), ('lock', pywink.get_locks, DISCOVER_LOCKS)): if func_exists():