mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
move imports in synology_srm component (#27603)
This commit is contained in:
parent
017a5a5b09
commit
3c280565fa
@ -4,9 +4,10 @@ For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/device_tracker.synology_srm/
|
||||
"""
|
||||
import logging
|
||||
|
||||
import synology_srm
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.components.device_tracker import (
|
||||
DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
@ -14,12 +15,13 @@ from homeassistant.components.device_tracker import (
|
||||
)
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_USERNAME,
|
||||
CONF_PASSWORD,
|
||||
CONF_PORT,
|
||||
CONF_SSL,
|
||||
CONF_USERNAME,
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@ -52,7 +54,6 @@ class SynologySrmDeviceScanner(DeviceScanner):
|
||||
|
||||
def __init__(self, config):
|
||||
"""Initialize the scanner."""
|
||||
import synology_srm
|
||||
|
||||
self.client = synology_srm.Client(
|
||||
host=config[CONF_HOST],
|
||||
|
Loading…
x
Reference in New Issue
Block a user