Move top level imports (#27597)

pull/27623/head
Patrik 2019-10-13 22:56:01 +02:00 committed by Paulus Schoutsen
parent c5dc670b36
commit 0235487a22
1 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,8 @@
import logging
import voluptuous as vol
from pytradfri import Gateway, RequestError
from pytradfri.api.aiocoap_api import APIFactory
import homeassistant.helpers.config_validation as cv
from homeassistant import config_entries
@ -91,8 +93,6 @@ async def async_setup(hass, config):
async def async_setup_entry(hass, entry):
"""Create a gateway."""
# host, identity, key, allow_tradfri_groups
from pytradfri import Gateway, RequestError # pylint: disable=import-error
from pytradfri.api.aiocoap_api import APIFactory
factory = APIFactory(
entry.data[CONF_HOST],