Move imports in niko_home_control component (#28036)

This commit is contained in:
Diefferson Koderer Môro 2019-10-21 05:04:10 -03:00 committed by Fabian Affolter
parent e9674374a4
commit 92ed8362ce

View File

@ -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: