1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-03 22:39:58 +00:00

Move imports to top for ripple (#29287)

This commit is contained in:
springstan
2019-12-01 15:23:18 +01:00
committed by Martin Hjelmare
parent 3c9d2b552e
commit e2e53be5ac

View File

@@ -1,6 +1,7 @@
"""Support for Ripple sensors."""
from datetime import timedelta
from pyripple import get_balance
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@@ -62,7 +63,6 @@ class RippleSensor(Entity):
def update(self):
"""Get the latest state of the sensor."""
from pyripple import get_balance
balance = get_balance(self.address)
if balance is not None: