Fixed imports

pull/766/head
Tom Duijf 2015-12-16 21:52:49 +00:00
parent da63800319
commit 31b4c8eb4d
3 changed files with 4 additions and 6 deletions

View File

@ -37,9 +37,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class WinkLockDevice(LockDevice):
""" Represents a Wink lock. """
import pywink
def __init__(self, wink: pywink.WinkLock):
def __init__(self, wink):
self.wink = wink
@property

View File

@ -10,7 +10,6 @@ For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/thermostat.heatmiser/
"""
import logging
import heatmiserV3
from homeassistant.components.thermostat import ThermostatDevice
from homeassistant.const import TEMP_CELCIUS
@ -26,6 +25,8 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the heatmiser thermostat. """
import heatmiserV3
ipaddress = str(config[CONF_IPADDRESS])
port = str(config[CONF_PORT])

View File

@ -61,9 +61,8 @@ def setup(hass, config):
class WinkToggleDevice(ToggleEntity):
""" Represents a Wink toogle (switch) device. """
import pywink
def __init__(self, wink: pywink.WinkBinarySwitch):
def __init__(self, wink):
self.wink = wink
@property