Migrate ZHA when enabling multi-PAN support on HA Yellow (#82213)

* Migrate ZHA when enabling multi-PAN support on HA Yellow

* Refactor BaseZhaFlow.async_step_maybe_confirm_ezsp_restore

* Change data passed to ZHA to initiate migration

* Catch errors during ZHA migration

* Fix ZhaMigrationHelper.async_prepare_yellow_migration return value

* Improve test coverage

* Improve test coverage

* Fix spelling

* Rename some none HA yellow specifics

* Rename again

* Increase number of migration retries + refactor

* Suppress OperationNotAllowed when reloading

* Adjust tests
This commit is contained in:
Erik Montnemery 2022-11-22 11:17:23 +01:00 committed by GitHub
parent 15176300e2
commit be7e76f302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1120 additions and 117 deletions

View file

@ -149,7 +149,7 @@ async def test_setup_zha_multipan(
"radio_type": "ezsp",
}
assert config_entry.options == {}
assert config_entry.title == "Yellow"
assert config_entry.title == "Yellow Multi-PAN"
async def test_setup_entry_wrong_board(hass: HomeAssistant) -> None: