1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Improve nest media player clip/image and event handling for multiple events in a short time range (#63149)

This commit is contained in:
Allen Porter
2022-01-11 20:54:49 -08:00
committed by GitHub
parent 42706f780c
commit 789c0a24dd
6 changed files with 594 additions and 259 deletions

View File

@@ -406,6 +406,8 @@ async def test_camera_removed(hass, auth):
DEVICE_TRAITS,
auth=auth,
)
# Simplify test setup
subscriber.cache_policy.fetch = False
assert len(hass.states.async_all()) == 1
cam = hass.states.get("camera.my_camera")
@@ -631,6 +633,8 @@ async def test_event_image_expired(hass, auth):
async def test_multiple_event_images(hass, auth):
"""Test fallback for an event event image that has been cleaned up on expiration."""
subscriber = await async_setup_camera(hass, DEVICE_TRAITS, auth=auth)
# Simplify test setup
subscriber.cache_policy.fetch = False
assert len(hass.states.async_all()) == 1
assert hass.states.get("camera.my_camera")