Move imports to top for radarr (#29322)
This commit is contained in:
parent
141fd1bffd
commit
8f608608ed
1 changed files with 5 additions and 5 deletions
|
@ -1,21 +1,22 @@
|
||||||
"""Support for Radarr."""
|
"""Support for Radarr."""
|
||||||
|
from datetime import datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
|
||||||
|
|
||||||
|
from pytz import timezone
|
||||||
import requests
|
import requests
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_API_KEY,
|
CONF_API_KEY,
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
CONF_PORT,
|
|
||||||
CONF_MONITORED_CONDITIONS,
|
CONF_MONITORED_CONDITIONS,
|
||||||
|
CONF_PORT,
|
||||||
CONF_SSL,
|
CONF_SSL,
|
||||||
)
|
)
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -79,7 +80,6 @@ class RadarrSensor(Entity):
|
||||||
|
|
||||||
def __init__(self, hass, conf, sensor_type):
|
def __init__(self, hass, conf, sensor_type):
|
||||||
"""Create Radarr entity."""
|
"""Create Radarr entity."""
|
||||||
from pytz import timezone
|
|
||||||
|
|
||||||
self.conf = conf
|
self.conf = conf
|
||||||
self.host = conf.get(CONF_HOST)
|
self.host = conf.get(CONF_HOST)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue