Skip to content

Commit

Permalink
Move imports to top for tautulli (#29204)
Browse files Browse the repository at this point in the history
  • Loading branch information
springstan authored and MartinHjelmare committed Nov 29, 2019
1 parent 5001dbd commit 7b33e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/tautulli/sensor.py
Expand Up @@ -2,6 +2,7 @@
from datetime import timedelta
import logging

from pytautulli import Tautulli
import voluptuous as vol

from homeassistant.components.sensor import PLATFORM_SCHEMA
Expand All @@ -10,10 +11,10 @@
CONF_HOST,
CONF_MONITORED_CONDITIONS,
CONF_NAME,
CONF_PATH,
CONF_PORT,
CONF_SSL,
CONF_VERIFY_SSL,
CONF_PATH,
)
from homeassistant.exceptions import PlatformNotReady
from homeassistant.helpers.aiohttp_client import async_get_clientsession
Expand Down Expand Up @@ -50,7 +51,6 @@

async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Create the Tautulli sensor."""
from pytautulli import Tautulli

name = config.get(CONF_NAME)
host = config[CONF_HOST]
Expand Down

0 comments on commit 7b33e57

Please sign in to comment.