Move imports to top for ripple (#29287)
This commit is contained in:
parent
3c9d2b552e
commit
e2e53be5ac
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue