From 9160d43a08f5acbefaf9ec36078ec5d0b90271a7 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Tue, 3 Dec 2019 00:59:13 +0100 Subject: [PATCH] Move imports to top for rachio (#29323) --- homeassistant/components/rachio/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rachio/__init__.py b/homeassistant/components/rachio/__init__.py index 28614d22110..4d67175ecd5 100644 --- a/homeassistant/components/rachio/__init__.py +++ b/homeassistant/components/rachio/__init__.py @@ -4,11 +4,13 @@ import logging from typing import Optional from aiohttp import web +from rachiopy import Rachio import voluptuous as vol + from homeassistant.auth.util import generate_secret from homeassistant.components.http import HomeAssistantView from homeassistant.const import CONF_API_KEY, EVENT_HOMEASSISTANT_STOP, URL_API -from homeassistant.helpers import discovery, config_validation as cv +from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.dispatcher import async_dispatcher_send _LOGGER = logging.getLogger(__name__) @@ -102,7 +104,6 @@ SIGNAL_RACHIO_SCHEDULE_UPDATE = SIGNAL_RACHIO_UPDATE + "_schedule" def setup(hass, config) -> bool: """Set up the Rachio component.""" - from rachiopy import Rachio # Listen for incoming webhook connections hass.http.register_view(RachioWebhookView())