-
-
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
Add config flow to frontier_silicon #64365
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
427a711
Add config_flow to frontier_silicon
wlcrs 1436787
Add missing translation file
wlcrs 7fc104b
Delay unique_id validation until radio_id can be determined
wlcrs 2c3456a
Fix tests
wlcrs f7bcbff
Improve tests
wlcrs 65be2b6
Use FlowResultType
wlcrs 1bae242
Bump afsapi to 0.2.6
wlcrs 482f0e2
Fix requirements_test_all.txt
wlcrs 44c1a28
Stash ssdp, reauth and unignore flows for now
wlcrs 1fa59e2
Re-introduce SSDP flow
wlcrs 5170de2
hassfest changes
wlcrs 4a17ac8
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs d4ca822
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs e527195
Merge remote-tracking branch 'upstream/dev' into fsapi-0.2.0-update
wlcrs ddf694e
Address review comments
wlcrs f269111
Small style update
wlcrs 577a6f3
Fix tests
wlcrs 808217b
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs 447edf9
Update integrations.json
wlcrs 12ef02b
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs 956d8b0
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs 62caf1e
Merge branch 'dev' into fsapi-0.2.0-update
wlcrs 842f7e2
fix order in manifest.json
wlcrs 1b8ef30
fix black errors
wlcrs eb5abb8
Apply suggestions from code review
wlcrs e087f21
Address review comments
wlcrs 43c715e
fix black errors
wlcrs da0a7e1
Use async_setup_platform instead of async_setup
wlcrs e215fdd
Address review comments on tests
wlcrs 1e69338
parameterize tests
wlcrs 6fcb5c5
Remove discovery component changes from this PR
wlcrs c956220
Address review comments
wlcrs e174b53
Apply suggestions from code review
wlcrs 382ed4f
Add extra asserts to tests
wlcrs df07d73
Restructure _async_step_device_config_if_needed
wlcrs 06090ad
Add return statement
wlcrs 08896fd
Update homeassistant/components/frontier_silicon/media_player.py
wlcrs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add return statement
- Loading branch information
commit 06090adf49f28e025ee87b6c47a95d7875e7d37d
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You should only do the import in the platform setup and add the media player entities only from the setup_entry method. Right now you add the entities twice.
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.
In which case are the entities loaded twice? I fail to see what problem you are mentioning?
In case of an SSDP discovery: they are added here in
async_setup_platform
and not insetup_entry
.In case of an import of the old YAML: the entity is migrated here but not added. It is subsequently added from
setup_entry
.In case of an entity added via the config flow: only added via
setup_entry
.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.
Aah sorry, I apparently forgot the nomenclature for the old way of loading entities. Still good I mentioned it as you should also move the SSDP discovery from the old discovery way to the config flow, there shouldn't be any in-between steps, its either old platform or new way. Can't say that I have any other comments apart from this though.
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.
Ah - that was a recommendation that I made, to reduce the size of the PR.
I felt it was easier to review without SSDP, and then migrate SSDP as a follow-up PR.
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.
Ok. And this was the future config entry PR mentioned? If that is the case I can be ok with that
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.
Yes, I'll be creating a PR for the following branch from the moment this one is merged: wlcrs/home-assistant-core@fsapi-0.2.0-update...wlcrs:home-assistant-core:frontier_silicon_ssdp