Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZHA backup/restore config flow #77044

Merged
merged 42 commits into from Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b584ab6
WIP
puddly Aug 10, 2022
338980f
Use translations
puddly Aug 13, 2022
d47dbc4
The automatic backup is picked by its text, not by its index
puddly Aug 13, 2022
8aa1280
Use the `RadioType` enum members instead of their string values
puddly Aug 13, 2022
26cb485
Fix manual port configuration
puddly Aug 14, 2022
8f70813
Remove translations for element that cannot be translated
puddly Aug 14, 2022
1ce6603
Use clearer name for config flow step
puddly Aug 14, 2022
de839e5
Move discovered steps to end of flow
puddly Aug 14, 2022
bc4d0c0
Fix error with showing IEEE overwrite checkbox
puddly Aug 14, 2022
5afc833
Minor reorganization
puddly Aug 14, 2022
323fa07
Only show the IEEE overwrite checkbox if the radio will allow it
puddly Aug 15, 2022
2a16ccb
Use more consistent spelling in translations
puddly Aug 15, 2022
7ced016
Implement manual backup uploads
puddly Aug 15, 2022
7d9d714
Prefer to restore an auto backup if possible (and it's not redundant)
puddly Aug 15, 2022
bffca08
Only show random PAN IDs when necessary (or in advanced mode)
puddly Aug 16, 2022
818ab4e
Make existing unit tests pass
puddly Aug 18, 2022
201c1bc
Rename `confirm_usb` back to `confirm` for now
puddly Aug 19, 2022
6eebbe9
Use the `DOMAIN` constant instead of `"zha"`
puddly Aug 19, 2022
f08d86b
Add some unit tests for new functionality
puddly Aug 19, 2022
df7ebef
Unit test restoring manual backups
puddly Aug 21, 2022
e5575d0
Unit test restoring automatic backups
puddly Aug 22, 2022
62737ec
Test `show_advanced_options`
puddly Aug 22, 2022
6223b6b
Make `_format_backup_choice` a standalone function
puddly Aug 22, 2022
e979e40
Move all uploaded file IO onto executor
puddly Aug 22, 2022
d483bbf
Use a menu for the formation strategy
puddly Aug 23, 2022
f524808
Include a translation string for the file upload element
puddly Aug 23, 2022
a11dd8b
Fix reference to frontend "Diagnostics" -> "Network Settings"
puddly Aug 23, 2022
5216305
Make IEEE overwrite text clearer
puddly Aug 25, 2022
fd9c327
Fix zeroconf steps for EFR32
puddly Aug 26, 2022
551f18e
Move IEEE overwriting flag methods out of class
puddly Aug 26, 2022
9ac26a5
Create an options flow to reconfigure ZHA's serial port
puddly Aug 27, 2022
80035c9
Deduplicate strings in `zha/strings.json`
puddly Aug 28, 2022
bcfccab
Add unit tests for options flow
puddly Aug 28, 2022
bc732d5
Utilize `FlowHandler.async_remove` instead of a destructor
puddly Aug 29, 2022
e1456e2
Add more docstrings to methods
puddly Aug 29, 2022
0b43a1f
Format `backup_time` using the local timezone
puddly Aug 29, 2022
73ef18f
Always reload ZHA in config flow if it isn't running
puddly Aug 29, 2022
88bc7d7
Move `os.path.exists` onto executor
puddly Aug 30, 2022
384c8d9
Make `file_upload` a dependency
puddly Aug 30, 2022
765b91f
Inherit `ZhaFlowMixin` -> `BaseZhaFlow` from `FlowHandler`
puddly Aug 30, 2022
93980af
Type annotate `zha.config_flow`
puddly Aug 30, 2022
13b9e75
Remove explicit event loop error condition handler from `async_remove`
puddly Aug 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view