Move imports in niko_home_control component (#28036)

This commit is contained in:
Diefferson Koderer Môro authored and Fabian Affolter committed 2019-10-21 10:04:10 +02:00
1 parent e9674374a4
commit 92ed8362ce
1 file changed
+1 -2
@@ -2,6 +2,7 @@
from datetime import timedelta
import logging
import nikohomecontrol
import voluptuous as vol
# Import the device class from the component that you want to support
@@ -20,8 +21,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string})
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the Niko Home Control light platform."""
import nikohomecontrol
host = config[CONF_HOST]
try: