mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in niko_home_control component (#28036)
This commit is contained in:
parent
e9674374a4
commit
92ed8362ce
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user