From fbfbae8ad9c52968d2867ab4ab57e43bbae580e0 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Fri, 29 Nov 2019 21:50:09 +0100 Subject: [PATCH] Move imports to top for swiss_hydrological_data (#29227) --- homeassistant/components/swiss_hydrological_data/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/swiss_hydrological_data/sensor.py b/homeassistant/components/swiss_hydrological_data/sensor.py index 2d5d0e8de3f..c8e7b9d6fc2 100644 --- a/homeassistant/components/swiss_hydrological_data/sensor.py +++ b/homeassistant/components/swiss_hydrological_data/sensor.py @@ -2,6 +2,7 @@ from datetime import timedelta import logging +from swisshydrodata import SwissHydroData import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA @@ -167,7 +168,6 @@ class HydrologicalData: @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """Get the latest data.""" - from swisshydrodata import SwissHydroData shd = SwissHydroData() self.data = shd.get_station(self.station)