mirror of
https://github.com/home-assistant/core.git
synced 2025-08-27 00:11:33 +02:00
Move imports to top for streamlabswater (#29225)
This commit is contained in:
committed by
Martin Hjelmare
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)
|
||||||
|
Reference in New Issue
Block a user