Skip to content

Commit

Permalink
Move imports to top for sleepiq (#29544)
Browse files Browse the repository at this point in the history
  • Loading branch information
springstan authored and frenck committed Dec 6, 2019
1 parent 1bb499a commit d5419b7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions homeassistant/components/sleepiq/__init__.py
@@ -1,13 +1,14 @@
"""Support for SleepIQ from SleepNumber."""
import logging
from datetime import timedelta
import logging

from sleepyq import Sleepyq
import voluptuous as vol

import homeassistant.helpers.config_validation as cv
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD
from homeassistant.util import Throttle

DOMAIN = "sleepiq"
Expand Down Expand Up @@ -47,8 +48,6 @@ def setup(hass, config):
"""
global DATA

from sleepyq import Sleepyq

username = config[DOMAIN][CONF_USERNAME]
password = config[DOMAIN][CONF_PASSWORD]
client = Sleepyq(username, password)
Expand Down

0 comments on commit d5419b7

Please sign in to comment.