Move imports to top for streamlabswater (#29225)
parent
93bb1a6816
commit
7d90b1f9ec
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue