Move imports in wink component (#27392)

This commit is contained in:
Quentame 2019-10-10 18:51:28 +02:00 committed by Paulus Schoutsen
parent 7b13f0caf7
commit 91379b0ff7
11 changed files with 24 additions and 18 deletions

View file

@ -1,6 +1,8 @@
"""Support for Wink switches."""
import logging
import pywink
from homeassistant.helpers.entity import ToggleEntity
from . import DOMAIN, WinkDevice
@ -10,7 +12,6 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Wink platform."""
import pywink
for switch in pywink.get_switches():
_id = switch.object_id() + switch.name()