Coalesce nest media source preview clips by session and bump google-nest-sdm (#61081)

This commit is contained in:
Allen Porter 2021-12-05 23:59:24 -08:00 committed by GitHub
parent 1bcff0907b
commit bbe4a67a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 56 additions and 42 deletions

View file

@ -117,7 +117,7 @@ async def test_doorbell_chime_event(hass):
"device_id": entry.device_id,
"type": "doorbell_chime",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}
@ -145,7 +145,7 @@ async def test_camera_motion_event(hass):
"device_id": entry.device_id,
"type": "camera_motion",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}
@ -173,7 +173,7 @@ async def test_camera_sound_event(hass):
"device_id": entry.device_id,
"type": "camera_sound",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}
@ -201,7 +201,7 @@ async def test_camera_person_event(hass):
"device_id": entry.device_id,
"type": "camera_person",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}
@ -238,13 +238,13 @@ async def test_camera_multiple_event(hass):
"device_id": entry.device_id,
"type": "camera_motion",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}
assert events[1].data == {
"device_id": entry.device_id,
"type": "camera_person",
"timestamp": event_time,
"nest_event_id": EVENT_ID,
"nest_event_id": EVENT_SESSION_ID,
}