-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Refactor Waze Travel Time #21632
Refactor Waze Travel Time #21632
Conversation
Refactored Waze Travel Time to contain a data object. * Changed error retrieving data to a warning. * Added distance conversion depending on region. * Removed dependency on TRACKABLE_DOMAINS list.
update to the documentation when home-assistant/core#21632 hits.
Wanted to mention this PR #21153 gets rid of update for google_time_travel so probably be best to do that with waze as well. There's a discussion of getting rid of update on sensors home-assistant/architecture#131 |
There is no update service for this component... nothing to remove. |
how do the waze values get continuously updated without something triggering it? I see |
It gets updated through the update method. Like every other sensor. I believe you are confusing the update service with the update method. To reenforce my reasoning, here is the expert that was removed from google_travel_time that is exactly what is being talked about.
Registering for a service. Not the fact that the component has an update method. |
hey fyi someone is having an issue with UTF-8 decoding #21739 |
It's not surprising, given the change, but I just took this PR locally, and confirmed the the UTF issue (really ISO-8859-1 decoding, I think) still fails. |
FWIW, replacing: edit: this seems like it was introduced in the last change to waze, which upgraded the wazeroutecalculator to a newer version that natively returns utf-8. |
Added vehicle type, removed decode statement.
FYI we may want to hold off on this PR until WazeRouteCalculator is fixed. There is a serious bug that affects Home Assistant users. The PR for it is: kovacsbalu/WazeRouteCalculator#37 |
@pvizeli I'm unable to resolve merge conflicts due to access rights. This PR is ready in regards to WazeRouteCalculator updates. |
update to the documentation when home-assistant/core#21632 hits.
Refactored Waze Travel Time to contain a data object.
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8825
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
REQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.If the code does not interact with devices: