From 180e146e149db010b82029982bda6257cc999749 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 15 Oct 2016 06:00:27 +0200 Subject: [PATCH] Upgrade uber_rides to 0.2.7 (#3876) --- homeassistant/components/sensor/uber.py | 11 +++++------ requirements_all.txt | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/sensor/uber.py b/homeassistant/components/sensor/uber.py index 7f250431984..5a3f931d76b 100644 --- a/homeassistant/components/sensor/uber.py +++ b/homeassistant/components/sensor/uber.py @@ -14,7 +14,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['uber_rides==0.2.5'] +REQUIREMENTS = ['uber_rides==0.2.7'] _LOGGER = logging.getLogger(__name__) @@ -49,10 +49,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None): wanted_product_ids = config.get(CONF_PRODUCT_IDS) dev = [] - timeandpriceest = UberEstimate(session, config[CONF_START_LATITUDE], - config[CONF_START_LONGITUDE], - config.get(CONF_END_LATITUDE), - config.get(CONF_END_LONGITUDE)) + timeandpriceest = UberEstimate( + session, config[CONF_START_LATITUDE], config[CONF_START_LONGITUDE], + config.get(CONF_END_LATITUDE), config.get(CONF_END_LONGITUDE)) for product_id, product in timeandpriceest.products.items(): if (wanted_product_ids is not None) and \ (product_id not in wanted_product_ids): @@ -114,7 +113,7 @@ class UberSensor(Entity): @property def device_state_attributes(self): """Return the state attributes.""" - time_estimate = self._product.get("time_estimate_seconds") + time_estimate = self._product.get('time_estimate_seconds') params = { 'Product ID': self._product['product_id'], 'Product short description': self._product['short_description'], diff --git a/requirements_all.txt b/requirements_all.txt index 76b41fec1be..560623d7ccc 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -491,7 +491,7 @@ transmissionrpc==0.11 twilio==5.4.0 # homeassistant.components.sensor.uber -uber_rides==0.2.5 +uber_rides==0.2.7 # homeassistant.components.device_tracker.unifi unifi==1.2.5