Move imports to top for smarty (#29251)

This commit is contained in:
springstan authored and Paulus Schoutsen committed 2019-11-30 21:24:17 -08:00
1 parent bea5d18c4a
commit 8da7f40736
4 files changed
+10 -8

No files matched your search

+3 -3
View File
@@ -1,12 +1,13 @@
"""Support to control a Salda Smarty XP/XV ventilation unit."""
from datetime import timedelta
import ipaddress
import logging
from pysmarty import Smarty
import voluptuous as vol
from homeassistant.const import CONF_NAME, CONF_HOST
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import dispatcher_send
@@ -36,7 +37,6 @@ SIGNAL_UPDATE_SMARTY = "smarty_update"
def setup(hass, config):
"""Set up the smarty environment."""
from pysmarty import Smarty
conf = config[DOMAIN]