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
Allow resetting time in google_travel_time #88256
Allow resetting time in google_travel_time #88256
Conversation
Marked as draft until frontend is done. |
57766ed
to
6d5db6e
Compare
0e57972
to
23d7bbb
Compare
23d7bbb
to
f491635
Compare
@epenet you reviewed the PR for waze. Could you also have a look on this one since it is basically the same |
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'm not sure your PR works as intended. I think you may still need a default=None in some places.
Basically, when a blank string is selected in the frontend, the data passed back will not contain the key at all, and therefore will not update the options.
I think you may need to set default=None
or default=""
where you want the key to be present in the resulting options.
Please adjust the test to ensure other options can also still be cleared.
The only thing which can be cleared is This line defines the test: |
But what about Since you dropped the default, I think they can't be reset. |
You are right. Its no problem for entries which define less than 7 possible values. Because then radio buttons are used and I can select the one without any description aka |
I suggest that you take a look at the discussion on #90412 I suggest that you do something similar here. |
#90412 has been accepted and merged. |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Short update: Frontend will add support for not selecting any option, and therefore, we can remove all |
dee7ba5
to
a20418a
Compare
a20418a
to
ca0ef1e
Compare
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Robert Resch <robert@resch.dev>
9904b88
to
6ed24c9
Compare
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.
Thanks @eifinger 👍
Proposed change
Allow resetting already defined departure or arrival times.
Equivalent to #88253
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: