Fixed style violations
This commit is contained in:
parent
3ce6463af3
commit
8eb73c8f17
2 changed files with 6 additions and 3 deletions
|
@ -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()
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue