diff --git a/homeassistant/components/sensor/wink.py b/homeassistant/components/sensor/wink.py index a9529168dd6..c93e93b32de 100644 --- a/homeassistant/components/sensor/wink.py +++ b/homeassistant/components/sensor/wink.py @@ -13,6 +13,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN, STATE_OPEN, STATE_CLOSED REQUIREMENTS = ['python-wink==0.3.1'] + def setup_platform(hass, config, add_devices, discovery_info=None): """ Sets up the Wink platform. """ import pywink @@ -62,6 +63,7 @@ class WinkSensorDevice(Entity): """ True if door is open. """ return self.wink.state() + class WinkEggMinder(Entity): """ Represents a Wink Egg Minder. """ @@ -84,5 +86,5 @@ class WinkEggMinder(Entity): return self.wink.name() def update(self): - """ Update state of the Egg Minder. """ - self.wink.update_state() + """ Update state of the Egg Minder. """ + self.wink.update_state() diff --git a/homeassistant/components/wink.py b/homeassistant/components/wink.py index 3a43d5eb07f..86cae1c49e2 100644 --- a/homeassistant/components/wink.py +++ b/homeassistant/components/wink.py @@ -38,7 +38,8 @@ def setup(hass, config): 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), + ('sensor', lambda: pywink.get_sensors or pywink.get_eggtrays, + DISCOVER_SENSORS), ('lock', pywink.get_locks, DISCOVER_LOCKS)): if func_exists():