mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Move imports in futurenow component (#27991)
This commit is contained in:
parent
bce9f14751
commit
5fa8c02e64
@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pyfnip
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_NAME, CONF_HOST, CONF_PORT, CONF_DEVICES
|
|
||||||
from homeassistant.components.light import (
|
from homeassistant.components.light import (
|
||||||
ATTR_BRIGHTNESS,
|
ATTR_BRIGHTNESS,
|
||||||
|
PLATFORM_SCHEMA,
|
||||||
SUPPORT_BRIGHTNESS,
|
SUPPORT_BRIGHTNESS,
|
||||||
Light,
|
Light,
|
||||||
PLATFORM_SCHEMA,
|
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_NAME, CONF_PORT
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -68,8 +69,6 @@ class FutureNowLight(Light):
|
|||||||
|
|
||||||
def __init__(self, device):
|
def __init__(self, device):
|
||||||
"""Initialize the light."""
|
"""Initialize the light."""
|
||||||
import pyfnip
|
|
||||||
|
|
||||||
self._name = device["name"]
|
self._name = device["name"]
|
||||||
self._dimmable = device["dimmable"]
|
self._dimmable = device["dimmable"]
|
||||||
self._channel = device["channel"]
|
self._channel = device["channel"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user