Move imports to top for syncthru (#29206)

This commit is contained in:
springstan 2019-11-29 01:54:42 +01:00 committed by Martin Hjelmare
parent 430061a159
commit e1fece48e1

View file

@ -1,13 +1,15 @@
"""Support for Samsung Printers with SyncThru web interface."""
import logging
from pysyncthru import SyncThru
import voluptuous as vol
from homeassistant.const import CONF_RESOURCE, CONF_HOST, CONF_NAME
from homeassistant.helpers import aiohttp_client
from homeassistant.helpers.entity import Entity
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_RESOURCE
from homeassistant.helpers import aiohttp_client
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
_LOGGER = logging.getLogger(__name__)
@ -33,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the SyncThru component."""
from pysyncthru import SyncThru
if discovery_info is not None:
_LOGGER.info(