Bad AI put a section back.

This commit is contained in:
Paulus Schoutsen
2025-10-03 09:48:43 -04:00
committed by GitHub
parent 4bccc57b46
commit fe35fac8ee

View File

@@ -837,61 +837,3 @@ graph TB
style revert_connect fill:#ffcdd2
style revert_device fill:#ffcdd2
```
### Migration Entry Point (intent_migrate)
Flow for migrating from one Z-Wave adapter to another:
```mermaid
graph TB
intent_migrate[intent_migrate] --> adapter_check{Adapter discovered<br/>or uses add-on?}
adapter_check -->|No| abort_addon_req[abort<br/>addon_required]
adapter_check -->|Yes| entry_loaded{Entry loaded?}
entry_loaded -->|No| abort_not_loaded[abort<br/>config_entry_not_loaded]
entry_loaded -->|Yes| sdk_check{SDK >= 6.61?}
sdk_check -->|No| abort_sdk[abort<br/>migration_low_sdk_version]
sdk_check -->|Yes| backup_nvm[backup_nvm]
backup_nvm -->|Fail| backup_failed[backup_failed<br/>abort]
backup_nvm -->|Success| instruct_unplug[instruct_unplug]
instruct_unplug --> unplug_confirm[Unload entry<br/>Show instructions<br/>with backup path]
unplug_confirm -->|Confirm| adapter_discovered{Adapter<br/>discovered?}
unplug_confirm -->|Cancel| abort_user[User aborts]
adapter_discovered -->|Yes| start_addon[start_addon]
adapter_discovered -->|No| choose_serial_port[choose_serial_port]
choose_serial_port --> start_addon
start_addon --> rf_check{Country not set<br/>& RF region not<br/>configured?}
rf_check -->|Yes| rf_region[rf_region]
rf_check -->|No| start_progress[Start/Restart add-on]
rf_region --> start_progress
start_progress -->|Fail| abort_start[abort<br/>addon_start_failed]
start_progress -->|Success| finish_migrate[finish_addon_setup_migrate]
finish_migrate --> restore_nvm[restore_nvm]
restore_nvm -->|Fail| restore_failed[restore_failed]
restore_nvm -->|Success| finalize[Update unique ID<br/>Reload to clean up<br/>old controller]
restore_failed --> retry_or_abort[Show retry<br/>with download link]
retry_or_abort -->|Retry| restore_nvm
retry_or_abort -->|Cancel| abort_user
finalize --> migration_done[migration_done<br/>abort migration_successful]
style intent_migrate fill:#e1f5ff
style migration_done fill:#c8e6c9
style abort_addon_req fill:#ffcdd2
style abort_not_loaded fill:#ffcdd2
style abort_sdk fill:#ffcdd2
style backup_failed fill:#ffcdd2
style abort_start fill:#ffcdd2
```