Migrate unifiprotect to use async_update_entry to alter config entries (#110409)

This commit is contained in:
J. Nick Koston 2024-02-12 14:38:25 -06:00 committed by GitHub
parent 04dccc7ec6
commit 15e8d66fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,8 +615,7 @@ async def test_browse_media_recent_truncated(
hass: HomeAssistant, ufp: MockUFPFixture, doorbell: Camera, fixed_now: datetime
) -> None:
"""Test browsing event selector level media for recent days."""
ufp.entry.options = {"max_media": 1}
hass.config_entries.async_update_entry(ufp.entry, options={"max_media": 1})
ufp.api.get_bootstrap = AsyncMock(return_value=ufp.api.bootstrap)
await init_entry(hass, ufp, [doorbell], regenerate_ids=False)