Store: copy pending data (#59934)

This commit is contained in:
Paulus Schoutsen 2021-11-18 15:56:22 -08:00 committed by GitHub
parent 0fb21af07f
commit 442597928e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 42 additions and 11 deletions

View file

@ -14,7 +14,7 @@ from .test_controller import (
setup_unifi_integration,
)
from tests.common import MockConfigEntry
from tests.common import MockConfigEntry, flush_store
async def test_setup_with_no_config(hass):
@ -110,6 +110,7 @@ async def test_wireless_clients(hass, hass_storage, aioclient_mock):
config_entry = await setup_unifi_integration(
hass, aioclient_mock, clients_response=[client_1, client_2]
)
await flush_store(hass.data[unifi.UNIFI_WIRELESS_CLIENTS]._store)
for mac in [
"00:00:00:00:00:00",