Move imports to top for trackr (#29109)
This commit is contained in:
parent
a27d8570c8
commit
23d4445de3
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,11 @@
|
|||
"""Support for the TrackR platform."""
|
||||
import logging
|
||||
|
||||
from pytrackr.api import trackrApiInterface
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.device_tracker import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.event import track_utc_time_change
|
||||
from homeassistant.util import slugify
|
||||
|
@ -27,7 +28,6 @@ class TrackRDeviceScanner:
|
|||
|
||||
def __init__(self, hass, config: dict, see) -> None:
|
||||
"""Initialize the TrackR device scanner."""
|
||||
from pytrackr.api import trackrApiInterface
|
||||
|
||||
self.hass = hass
|
||||
self.api = trackrApiInterface(
|
||||
|
|
Loading…
Add table
Reference in a new issue