mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
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)
This commit is contained in:
parent
5bfe5b3f70
commit
2c39038507
@ -137,10 +137,8 @@ class LyftSensor(Entity):
|
|||||||
params['Trip duration (in seconds)'] = estimate.get(
|
params['Trip duration (in seconds)'] = estimate.get(
|
||||||
'estimated_duration_seconds')
|
'estimated_duration_seconds')
|
||||||
|
|
||||||
# Ignore the Prime Time percentage -- the Lyft API always
|
params['Prime Time percentage'] = estimate.get(
|
||||||
# returns 0 unless a user is logged in.
|
'primetime_percentage')
|
||||||
# params['Prime Time percentage'] = estimate.get(
|
|
||||||
# 'primetime_percentage')
|
|
||||||
|
|
||||||
if self._product.get("eta") is not None:
|
if self._product.get("eta") is not None:
|
||||||
eta = self._product['eta']
|
eta = self._product['eta']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user