From 2c39038507a1cba936f5fffe97d4e0df39a54896 Mon Sep 17 00:00:00 2001 From: Dan Ports Date: Sat, 22 Apr 2017 12:16:06 -0700 Subject: [PATCH] lyft sensor: re-enable Prime Time rate attribute (#6982) Turns out this does work correctly even without a user login (assuming that sandbox mode is disabled) --- homeassistant/components/sensor/lyft.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/sensor/lyft.py b/homeassistant/components/sensor/lyft.py index 3962be0aa2f..2b71c82ece7 100644 --- a/homeassistant/components/sensor/lyft.py +++ b/homeassistant/components/sensor/lyft.py @@ -137,10 +137,8 @@ class LyftSensor(Entity): params['Trip duration (in seconds)'] = estimate.get( 'estimated_duration_seconds') - # Ignore the Prime Time percentage -- the Lyft API always - # returns 0 unless a user is logged in. - # params['Prime Time percentage'] = estimate.get( - # 'primetime_percentage') + params['Prime Time percentage'] = estimate.get( + 'primetime_percentage') if self._product.get("eta") is not None: eta = self._product['eta']