From de06a21dd2ec3c96a470a9b52e7bc358f671a9ad Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 25 Nov 2019 20:18:16 +0100 Subject: [PATCH] Move import --- custom_components/example_light/light.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/example_light/light.py b/custom_components/example_light/light.py index c85d051..93a7468 100644 --- a/custom_components/example_light/light.py +++ b/custom_components/example_light/light.py @@ -1,6 +1,7 @@ """Platform for light integration.""" import logging +import awesomelights import voluptuous as vol import homeassistant.helpers.config_validation as cv @@ -21,8 +22,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None): """Set up the Awesome Light platform.""" - import awesomelights - # Assign configuration variables. # The configuration check takes care they are present. host = config[CONF_HOST]