Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move imports to top for ihc #29425

Merged
merged 1 commit into from Dec 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/ihc/__init__.py
Expand Up @@ -2,6 +2,8 @@
import logging
import os.path

from defusedxml import ElementTree
from ihcsdk.ihccontroller import IHCController
import voluptuous as vol

from homeassistant.components.binary_sensor import DEVICE_CLASSES_SCHEMA
Expand Down Expand Up @@ -214,7 +216,6 @@ def setup(hass, config):

def ihc_setup(hass, config, conf, controller_id):
"""Set up the IHC component."""
from ihcsdk.ihccontroller import IHCController

url = conf[CONF_URL]
username = conf[CONF_USERNAME]
Expand Down Expand Up @@ -272,7 +273,6 @@ def autosetup_ihc_products(
hass: HomeAssistantType, config, ihc_controller, controller_id
):
"""Auto setup of IHC products from the IHC project file."""
from defusedxml import ElementTree

project_xml = ihc_controller.get_project()
if not project_xml:
Expand Down