Move imports in eufy component (#27405)

This commit is contained in:
Markus Nigbur authored and Paulus Schoutsen committed 2019-10-10 11:16:30 -07:00
1 parent 13ac6ac315
commit 27f036c691
3 files changed
+3 -3

No files matched your search

+1 -1
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(
+1 -1
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
+1 -1
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"]