move imports in smarthab component (#27942)

This commit is contained in:
Michał Mrozek authored and Pascal Vizeli committed 2019-10-20 12:14:07 +02:00
1 parent ed46834a30
commit c42ca94a86
3 files changed
+16 -12

No files matched your search

@@ -6,11 +6,12 @@ https://home-assistant.io/integrations/smarthab/
"""
import logging
import pysmarthab
import voluptuous as vol
from homeassistant.helpers.discovery import load_platform
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.discovery import load_platform
DOMAIN = "smarthab"
DATA_HUB = "hub"
@@ -32,7 +33,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config) -> bool:
"""Set up the SmartHab platform."""
import pysmarthab
sh_conf = config.get(DOMAIN)