mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 11:54:35 +02:00
Move imports in niko_home_control component (#28036)
This commit is contained in:
committed by
Fabian Affolter
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:
|
||||
|
||||
Reference in New Issue
Block a user