Port wink from external to requirements.txt
This commit is contained in:
parent
2f622053a6
commit
40b2acb472
6 changed files with 13 additions and 421 deletions
|
@ -6,15 +6,14 @@ Support for Wink switches.
|
|||
"""
|
||||
import logging
|
||||
|
||||
# pylint: disable=no-name-in-module, import-error
|
||||
import homeassistant.external.wink.pywink as pywink
|
||||
|
||||
from homeassistant.components.wink import WinkToggleDevice
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
""" Sets up the Wink platform. """
|
||||
import pywink
|
||||
|
||||
if discovery_info is None:
|
||||
token = config.get(CONF_ACCESS_TOKEN)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue