Move imports to top for hue (#29501)

This commit is contained in:
springstan 2019-12-05 13:19:50 +01:00 committed by Franck Nijhof
parent 086d1f432d
commit 009e4df6ef
3 changed files with 4 additions and 3 deletions

View file

@ -9,9 +9,9 @@ from homeassistant.const import CONF_FILENAME, CONF_HOST
from homeassistant.helpers import config_validation as cv, device_registry as dr
from .bridge import HueBridge
from .config_flow import (
from .config_flow import ( # Loading the config flow file will register the flow
configured_hosts,
) # Loading the config flow file will register the flow
)
from .const import DOMAIN
_LOGGER = logging.getLogger(__name__)

View file

@ -134,6 +134,7 @@ class HueFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
This flow is triggered by the SSDP component. It will check if the
host is already configured and delegate to the import step if not.
"""
# pylint: disable=import-outside-toplevel
from homeassistant.components.ssdp import ATTR_MANUFACTURERURL, ATTR_NAME
if discovery_info[ATTR_MANUFACTURERURL] != HUE_MANUFACTURERURL:

View file

@ -1,7 +1,7 @@
"""Helper functions for Philips Hue."""
from homeassistant import config_entries
from homeassistant.helpers.device_registry import async_get_registry as get_dev_reg
from homeassistant.helpers.entity_registry import async_get_registry as get_ent_reg
from homeassistant import config_entries
from .const import DOMAIN