Updates to resolve flake8 errors
This commit is contained in:
1 parent
a7315684c4
commit
a287bb5da0
2 files changed
+6
-2
No files matched your search
@@ -9,9 +9,9 @@ from datetime import timedelta
|
||||
from homeassistant.loader import get_component
|
||||
import homeassistant.util as util
|
||||
from homeassistant.const import (
|
||||
STATE_OPEN, STATE_CLOSED, ATTR_ENTITY_ID)
|
||||
STATE_OPEN)
|
||||
from homeassistant.helpers import (
|
||||
extract_entity_ids, platform_devices_from_config)
|
||||
platform_devices_from_config)
|
||||
from homeassistant.components import group, discovery, wink
|
||||
|
||||
DOMAIN = 'sensor'
|
||||
@@ -39,6 +39,7 @@ def is_on(hass, entity_id=None):
|
||||
|
||||
return hass.states.is_state(entity_id, STATE_OPEN)
|
||||
|
||||
|
||||
def setup(hass, config):
|
||||
""" Track states and offer events for sensors. """
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in new issue
Block a user