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
Add ConfigFlow for here_travel_time #22731
Add ConfigFlow for here_travel_time #22731
Conversation
- Transport | ||
ha_iot_class: Cloud Polling | ||
ha_release: '0.100' | ||
ha_config_flow: true | ||
ha_quality_scale: silver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I don't see that the manifest currently has this set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened a PR for it and think it even is gold: home-assistant/core#72308
|
||
HERE offers a Freemium Plan which includes 250,000 free Transactions per month. For the Routing API, one transaction equals one request with one starting point (no multi stop). More information can be found [here](https://developer.here.com/faqs#payment-subscription) | ||
HERE offers a Freemium Plan which includes 250,000 free Transactions per month. For the Routing API, one transaction equals one request with one starting point (no multi stop). More information can be found [here](https://knowledge.here.com/csm_kb?id=public_kb_csm_details&number=KB0016433) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is worth letting the user how much of this quota would be consumed by home assistant by default? Doesn't have to be this PR since this is unrelated cleanup, but I was just thinking through what i might wonder reading this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added information on how much the free requests can be used with the standard config.
### Migrate from app_code to api_key | ||
|
||
HERE has changed its authentication mechanism. It is no longer possible to use `app_id` and `app_code`. Existing users have to follow the [migration guide](https://developer.here.com/documentation/authentication/dev_guide/topics/api-key-credentials.html) in order to retrieve the now needed `api_key`. | ||
By default HERE will deactivate your account if you exceed the free Transaction limit for the month. You can add payment details to re-enable your account as described [here](https://knowledge.here.com/csm_kb?id=public_kb_csm_details&number=KB0016434) | ||
|
||
## Configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My impression is now this includes the template it gives standard instructions for how to navigate to config flow and options, which is great -- though now it's not really explaining how the integration itself works as much. Maybe before jumping into dynamic configuration it's worth explaining the concepts of setting the origin and destination, then it goes next into the more advanced dynamic config with that baseline understanding set?
It is fairly straight forward from the config flow, however, so very open to the idea this isn't needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied a part of the waze documentation to be more clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me for the config flow changes.
Can re-review when the quality scale change lands, or you can separate that out to a follow up.
@allenporter I removed the quality scale so we can finish this up quicker |
Proposed change
Adjust documentation to the new config flow. I try to align with waze and google as much as possible.
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.