-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Uber platform when 'estimate' not returned via the API call #3721
Comments
This issue still exists in v0.38.3 The whole Uber component is not showing, because of the error thrown.
My config looks like this:
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
Still experience this same issue in 0.41.0. Will try updating to latest version later this week. But since 0.42 introduced more issues, I rolled back to 0.41 |
Home Assistant release (
hass --version
):0.29.7
Python release (
python3 --version
):Python 3.5.2
Component/platform:
uber
Description of problem:
When estimate is not set in price_details this error is thrown and its fatal, sensor data is not shown for time estimate on States page.
16-10-05 21:56:15 homeassistant.components.sensor: Error while setting up platform uber Traceback (most recent call last): File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py", line 107, in _setup_platform discovery_info) File "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/uber.py", line 62, in setup_platform product['price_details']['estimate'] is not 'Metered': KeyError: 'estimate'
Expected:
Even if a price estimate is not available the time estimate should still be displayed.
Problem-relevant
configuration.yaml
entries and steps to reproduce:Additional info:
I have not tried setting the optional destination ( end lat and long ) to see if the estimate value is populated, I would imagine that wilI be. I commented out line numbers 61-64 as a workaround but will probably just hack it to check if ['price_details']['estimate'] is set before executing the rest of that block of code.
The text was updated successfully, but these errors were encountered: