Move imports to top for streamlabswater (#29225)

pull/29236/head
springstan 2019-11-29 21:27:00 +01:00 committed by Martin Hjelmare
parent 93bb1a6816
commit 7d90b1f9ec
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,7 @@
"""Support for Streamlabs Water Monitor devices.""" """Support for Streamlabs Water Monitor devices."""
import logging import logging
from streamlabswater import streamlabswater
import voluptuous as vol import voluptuous as vol
from homeassistant.const import CONF_API_KEY from homeassistant.const import CONF_API_KEY
@ -39,7 +40,6 @@ SET_AWAY_MODE_SCHEMA = vol.Schema(
def setup(hass, config): def setup(hass, config):
"""Set up the streamlabs water component.""" """Set up the streamlabs water component."""
from streamlabswater import streamlabswater
conf = config[DOMAIN] conf = config[DOMAIN]
api_key = conf.get(CONF_API_KEY) api_key = conf.get(CONF_API_KEY)