From 5fa8c02e6413ad9b20eda5b0dc8659999e246cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diefferson=20Koderer=20M=C3=B4ro?= Date: Sun, 20 Oct 2019 18:21:17 -0300 Subject: [PATCH] Move imports in futurenow component (#27991) --- homeassistant/components/futurenow/light.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/futurenow/light.py b/homeassistant/components/futurenow/light.py index eba768f82e3..7b9e79dbb3e 100644 --- a/homeassistant/components/futurenow/light.py +++ b/homeassistant/components/futurenow/light.py @@ -2,15 +2,16 @@ import logging +import pyfnip import voluptuous as vol -from homeassistant.const import CONF_NAME, CONF_HOST, CONF_PORT, CONF_DEVICES from homeassistant.components.light import ( ATTR_BRIGHTNESS, + PLATFORM_SCHEMA, SUPPORT_BRIGHTNESS, Light, - PLATFORM_SCHEMA, ) +from homeassistant.const import CONF_DEVICES, CONF_HOST, CONF_NAME, CONF_PORT import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) @@ -68,8 +69,6 @@ class FutureNowLight(Light): def __init__(self, device): """Initialize the light.""" - import pyfnip - self._name = device["name"] self._dimmable = device["dimmable"] self._channel = device["channel"]