From 627ca3182a927af91af871b5fd4e31e7ca4d31e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Mrozek?= Date: Sun, 13 Oct 2019 14:56:02 +0200 Subject: [PATCH] Move imports in thingspeak component (#27585) --- homeassistant/components/thingspeak/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/thingspeak/__init__.py b/homeassistant/components/thingspeak/__init__.py index 0893b3311bb..1870a317752 100644 --- a/homeassistant/components/thingspeak/__init__.py +++ b/homeassistant/components/thingspeak/__init__.py @@ -2,6 +2,7 @@ import logging from requests.exceptions import RequestException +import thingspeak import voluptuous as vol from homeassistant.const import ( @@ -36,7 +37,6 @@ CONFIG_SCHEMA = vol.Schema( def setup(hass, config): """Set up the Thingspeak environment.""" - import thingspeak conf = config[DOMAIN] api_key = conf.get(CONF_API_KEY)