Move imports in eufy component (#27405)
This commit is contained in:
parent
13ac6ac315
commit
27f036c691
3 changed files with 3 additions and 3 deletions
|
@ -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,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,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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue