Fix serialization of Xiaomi BLE reauth flow (#76095)

* Use data instead of context to fix serialisation bug

* Test change to async_start_reauth
This commit is contained in:
Jc2k 2022-08-02 21:38:38 +01:00 committed by GitHub
parent a628be4db8
commit a0adfb9e62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 8 deletions

View file

@ -1033,9 +1033,8 @@ async def test_async_step_reauth_abort_early(hass):
"entry_id": entry.entry_id,
"title_placeholders": {"name": entry.title},
"unique_id": entry.unique_id,
"device": device,
},
data=entry.data,
data=entry.data | {"device": device},
)
assert result["type"] == FlowResultType.ABORT