mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in zengge component (#27387)
This commit is contained in:
parent
19c8710698
commit
f5560e2b18
@ -1,6 +1,7 @@
|
|||||||
"""Support for Zengge lights."""
|
"""Support for Zengge lights."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from zengge import zengge
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_DEVICES, CONF_NAME
|
from homeassistant.const import CONF_DEVICES, CONF_NAME
|
||||||
@ -47,12 +48,11 @@ class ZenggeLight(Light):
|
|||||||
|
|
||||||
def __init__(self, device):
|
def __init__(self, device):
|
||||||
"""Initialize the light."""
|
"""Initialize the light."""
|
||||||
import zengge
|
|
||||||
|
|
||||||
self._name = device["name"]
|
self._name = device["name"]
|
||||||
self._address = device["address"]
|
self._address = device["address"]
|
||||||
self.is_valid = True
|
self.is_valid = True
|
||||||
self._bulb = zengge.zengge(self._address)
|
self._bulb = zengge(self._address)
|
||||||
self._white = 0
|
self._white = 0
|
||||||
self._brightness = 0
|
self._brightness = 0
|
||||||
self._hs_color = (0, 0)
|
self._hs_color = (0, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user