update pyripple (#11122)

This commit is contained in:
Nolan Gilley 2017-12-13 15:21:14 -05:00 committed by Pascal Vizeli
parent 638dd25aff
commit 4ec3289f9c
2 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (CONF_NAME, ATTR_ATTRIBUTION)
from homeassistant.helpers.entity import Entity
REQUIREMENTS = ['python-ripple-api==0.0.2']
REQUIREMENTS = ['python-ripple-api==0.0.3']
CONF_ADDRESS = 'address'
CONF_ATTRIBUTION = "Data provided by ripple.com"
@ -71,4 +71,6 @@ class RippleSensor(Entity):
def update(self):
"""Get the latest state of the sensor."""
from pyripple import get_balance
self._state = get_balance(self.address)
balance = get_balance(self.address)
if balance is not None:
self._state = balance

View file

@ -883,7 +883,7 @@ python-nmap==0.6.1
python-pushover==0.3
# homeassistant.components.sensor.ripple
python-ripple-api==0.0.2
python-ripple-api==0.0.3
# homeassistant.components.media_player.roku
python-roku==3.1.3