mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Move imports to top for syncthru (#29206)
This commit is contained in:
parent
430061a159
commit
e1fece48e1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user