Move imports to top for syncthru (#29206)
This commit is contained in:
parent
430061a159
commit
e1fece48e1
1 changed files with 6 additions and 5 deletions
|
@ -1,13 +1,15 @@
|
||||||
"""Support for Samsung Printers with SyncThru web interface."""
|
"""Support for Samsung Printers with SyncThru web interface."""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pysyncthru import SyncThru
|
||||||
import voluptuous as vol
|
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.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__)
|
_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):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the SyncThru component."""
|
"""Set up the SyncThru component."""
|
||||||
from pysyncthru import SyncThru
|
|
||||||
|
|
||||||
if discovery_info is not None:
|
if discovery_info is not None:
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue