diff --git a/homeassistant/components/sensor/starlingbank.py b/homeassistant/components/sensor/starlingbank.py index a0c6f23e496..84b30daa2e9 100644 --- a/homeassistant/components/sensor/starlingbank.py +++ b/homeassistant/components/sensor/starlingbank.py @@ -14,7 +14,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity -REQUIREMENTS = ['starlingbank==1.2'] +REQUIREMENTS = ['starlingbank==3.0'] _LOGGER = logging.getLogger(__name__) @@ -96,8 +96,8 @@ class StarlingBalanceSensor(Entity): def update(self): """Fetch new state data for the sensor.""" - self._starling_account.balance.update() + self._starling_account.update_balance_data() if self._balance_data_type == 'cleared_balance': - self._state = self._starling_account.balance.cleared_balance + self._state = self._starling_account.cleared_balance / 100 elif self._balance_data_type == 'effective_balance': - self._state = self._starling_account.balance.effective_balance + self._state = self._starling_account.effective_balance / 100 diff --git a/requirements_all.txt b/requirements_all.txt index 4142421b78d..2398fdc977d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1616,7 +1616,7 @@ sqlalchemy==1.2.18 srpenergy==1.0.5 # homeassistant.components.sensor.starlingbank -starlingbank==1.2 +starlingbank==3.0 # homeassistant.components.statsd statsd==3.2.1