From 0d1a38960283dc44fde383ed306685d346b2d711 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Wed, 4 Dec 2019 15:21:18 +0100 Subject: [PATCH] Move imports to top for etherscan (#29426) --- homeassistant/components/etherscan/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/etherscan/sensor.py b/homeassistant/components/etherscan/sensor.py index 9cabb2762b0..1c14ce578c1 100644 --- a/homeassistant/components/etherscan/sensor.py +++ b/homeassistant/components/etherscan/sensor.py @@ -1,6 +1,7 @@ """Support for Etherscan sensors.""" from datetime import timedelta +from pyetherscan import get_balance import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA @@ -75,7 +76,6 @@ class EtherscanSensor(Entity): def update(self): """Get the latest state of the sensor.""" - from pyetherscan import get_balance if self._token_address: self._state = get_balance(self._address, self._token_address)