From 322399c0af4e759b79c3f1581c4e7506e350636e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diefferson=20Koderer=20M=C3=B4ro?= Date: Mon, 21 Oct 2019 05:24:06 -0300 Subject: [PATCH] Move imports in kira component (#28007) --- homeassistant/components/kira/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/kira/__init__.py b/homeassistant/components/kira/__init__.py index 77f91a50dfa..8948fbd0b8f 100644 --- a/homeassistant/components/kira/__init__.py +++ b/homeassistant/components/kira/__init__.py @@ -2,11 +2,13 @@ import logging import os +import pykira import voluptuous as vol from voluptuous.error import Error as VoluptuousError import yaml from homeassistant.const import ( + CONF_CODE, CONF_DEVICE, CONF_HOST, CONF_NAME, @@ -15,7 +17,6 @@ from homeassistant.const import ( CONF_TYPE, EVENT_HOMEASSISTANT_STOP, STATE_UNKNOWN, - CONF_CODE, ) from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv @@ -93,8 +94,6 @@ def load_codes(path): def setup(hass, config): """Set up the KIRA component.""" - import pykira - sensors = config.get(DOMAIN, {}).get(CONF_SENSORS, []) remotes = config.get(DOMAIN, {}).get(CONF_REMOTES, []) # If no sensors or remotes were specified, add a sensor