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())