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

View file

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

View file

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