Move imports in eufy component (#27405)

This commit is contained in:
Markus Nigbur 2019-10-10 20:16:30 +02:00 committed by Paulus Schoutsen
parent 13ac6ac315
commit 27f036c691
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,6 @@
"""Support for Eufy devices.""" """Support for Eufy devices."""
import logging import logging
import lakeside
import voluptuous as vol import voluptuous as vol
@ -56,7 +57,6 @@ EUFY_DISPATCH = {
def setup(hass, config): def setup(hass, config):
"""Set up Eufy devices.""" """Set up Eufy devices."""
import lakeside
if CONF_USERNAME in config[DOMAIN] and CONF_PASSWORD in config[DOMAIN]: if CONF_USERNAME in config[DOMAIN] and CONF_PASSWORD in config[DOMAIN]:
data = lakeside.get_devices( data = lakeside.get_devices(

View file

@ -1,5 +1,6 @@
"""Support for Eufy lights.""" """Support for Eufy lights."""
import logging import logging
import lakeside
from homeassistant.components.light import ( from homeassistant.components.light import (
ATTR_BRIGHTNESS, ATTR_BRIGHTNESS,
@ -36,7 +37,6 @@ class EufyLight(Light):
def __init__(self, device): def __init__(self, device):
"""Initialize the light.""" """Initialize the light."""
import lakeside
self._temp = None self._temp = None
self._brightness = None self._brightness = None

View file

@ -1,5 +1,6 @@
"""Support for Eufy switches.""" """Support for Eufy switches."""
import logging import logging
import lakeside
from homeassistant.components.switch import SwitchDevice from homeassistant.components.switch import SwitchDevice
@ -18,7 +19,6 @@ class EufySwitch(SwitchDevice):
def __init__(self, device): def __init__(self, device):
"""Initialize the light.""" """Initialize the light."""
import lakeside
self._state = None self._state = None
self._name = device["name"] self._name = device["name"]