Handle remove packets for UniFi Protect (#77337)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
47848b7cf8
commit
6558643448
14 changed files with 52 additions and 38 deletions
|
@ -279,7 +279,7 @@ async def test_adopt(hass: HomeAssistant, ufp: MockUFPFixture, camera: ProtectCa
|
|||
await init_entry(hass, ufp, [camera1])
|
||||
assert_entity_counts(hass, Platform.CAMERA, 0, 0)
|
||||
|
||||
await remove_entities(hass, [camera1])
|
||||
await remove_entities(hass, ufp, [camera1])
|
||||
assert_entity_counts(hass, Platform.CAMERA, 0, 0)
|
||||
camera1.channels = []
|
||||
await adopt_devices(hass, ufp, [camera1])
|
||||
|
@ -296,7 +296,7 @@ async def test_adopt(hass: HomeAssistant, ufp: MockUFPFixture, camera: ProtectCa
|
|||
await hass.async_block_till_done()
|
||||
assert_entity_counts(hass, Platform.CAMERA, 2, 1)
|
||||
|
||||
await remove_entities(hass, [camera1])
|
||||
await remove_entities(hass, ufp, [camera1])
|
||||
assert_entity_counts(hass, Platform.CAMERA, 0, 0)
|
||||
await adopt_devices(hass, ufp, [camera1])
|
||||
assert_entity_counts(hass, Platform.CAMERA, 2, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue