mirror of
https://github.com/home-assistant/core.git
synced 2026-09-15 02:35:36 -05:00
Move imports to top for ripple (#29287)
This commit is contained in:
committed by
Martin Hjelmare
parent
3c9d2b552e
commit
e2e53be5ac
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user