From 34713a8eba64ea0d3b15a8aec2f7abcd33222d09 Mon Sep 17 00:00:00 2001 From: William Taylor Date: Tue, 4 Jun 2024 05:44:55 +0000 Subject: [PATCH] Update unifiprotect binarysensor tests for animal detection --- tests/components/unifiprotect/test_binary_sensor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/unifiprotect/test_binary_sensor.py b/tests/components/unifiprotect/test_binary_sensor.py index 81ed02869b8013..cb796053d8c10d 100644 --- a/tests/components/unifiprotect/test_binary_sensor.py +++ b/tests/components/unifiprotect/test_binary_sensor.py @@ -50,11 +50,11 @@ async def test_binary_sensor_camera_remove( ufp.api.bootstrap.nvr.system_info.ustorage = None await init_entry(hass, ufp, [doorbell, unadopted_camera]) - assert_entity_counts(hass, Platform.BINARY_SENSOR, 7, 7) + assert_entity_counts(hass, Platform.BINARY_SENSOR, 8, 8) await remove_entities(hass, ufp, [doorbell, unadopted_camera]) assert_entity_counts(hass, Platform.BINARY_SENSOR, 0, 0) await adopt_devices(hass, ufp, [doorbell, unadopted_camera]) - assert_entity_counts(hass, Platform.BINARY_SENSOR, 7, 7) + assert_entity_counts(hass, Platform.BINARY_SENSOR, 8, 8) async def test_binary_sensor_light_remove( @@ -122,7 +122,7 @@ async def test_binary_sensor_setup_camera_all( ufp.api.bootstrap.nvr.system_info.ustorage = None await init_entry(hass, ufp, [doorbell, unadopted_camera]) - assert_entity_counts(hass, Platform.BINARY_SENSOR, 7, 7) + assert_entity_counts(hass, Platform.BINARY_SENSOR, 8, 8) description = EVENT_SENSORS[0] unique_id, entity_id = ids_from_device_description( @@ -274,7 +274,7 @@ async def test_binary_sensor_update_motion( """Test binary_sensor motion entity.""" await init_entry(hass, ufp, [doorbell, unadopted_camera]) - assert_entity_counts(hass, Platform.BINARY_SENSOR, 13, 13) + assert_entity_counts(hass, Platform.BINARY_SENSOR, 14, 14) _, entity_id = ids_from_device_description( Platform.BINARY_SENSOR, doorbell, EVENT_SENSORS[1]