Move imports in isy994 component (#28004)
This commit is contained in:
parent
4a54b130cb
commit
77d55a3b15
1 changed files with 2 additions and 4 deletions
|
@ -3,6 +3,8 @@ from collections import namedtuple
|
|||
import logging
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import PyISY
|
||||
from PyISY.Nodes import Group
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
|
@ -312,8 +314,6 @@ def _categorize_nodes(
|
|||
# Don't import this node as a device at all
|
||||
continue
|
||||
|
||||
from PyISY.Nodes import Group
|
||||
|
||||
if isinstance(node, Group):
|
||||
hass.data[ISY994_NODES][SCENE_DOMAIN].append(node)
|
||||
continue
|
||||
|
@ -419,8 +419,6 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
_LOGGER.error("isy994 host value in configuration is invalid")
|
||||
return False
|
||||
|
||||
import PyISY
|
||||
|
||||
# Connect to ISY controller.
|
||||
isy = PyISY.ISY(
|
||||
host.hostname,
|
||||
|
|
Loading…
Add table
Reference in a new issue