From 89ef5239905f69aa4c37af2247863a5367e509b8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 23 Dec 2025 01:01:20 -1000 Subject: [PATCH] tweak --- tests/integration/test_object_id_api_verification.py | 3 +-- .../test_object_id_friendly_name_no_mac_suffix.py | 3 +-- tests/integration/test_object_id_no_friendly_name.py | 6 ++---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/integration/test_object_id_api_verification.py b/tests/integration/test_object_id_api_verification.py index d9846ad12d..58862bd234 100644 --- a/tests/integration/test_object_id_api_verification.py +++ b/tests/integration/test_object_id_api_verification.py @@ -176,8 +176,7 @@ async def test_object_id_api_verification( # === Test 3: Verify ALL entities can have object_id computed from API data === # This uses the algorithm from the PR summary that aioesphomeapi will use. - # NOTE: `name_add_mac_suffix` needs to be added to DeviceInfoResponse. - # For now, we infer it from the device name ending with MAC suffix. + # Infer name_add_mac_suffix from device name ending with MAC suffix. mac_suffix = device_info.mac_address.replace(":", "")[-6:].lower() name_add_mac_suffix = device_info.name.endswith(f"-{mac_suffix}") diff --git a/tests/integration/test_object_id_friendly_name_no_mac_suffix.py b/tests/integration/test_object_id_friendly_name_no_mac_suffix.py index 40066532e7..b8d198f9d0 100644 --- a/tests/integration/test_object_id_friendly_name_no_mac_suffix.py +++ b/tests/integration/test_object_id_friendly_name_no_mac_suffix.py @@ -73,8 +73,7 @@ async def test_object_id_friendly_name_no_mac_suffix( assert named_entities[0].object_id == "temperature" # Verify the full algorithm from PR summary works for ALL entities - # NOTE: `name_add_mac_suffix` needs to be added to DeviceInfoResponse. - # For now, we infer it from the device name ending with MAC suffix. + # Infer name_add_mac_suffix from device name ending with MAC suffix. mac_suffix = device_info.mac_address.replace(":", "")[-6:].lower() name_add_mac_suffix = device_info.name.endswith(f"-{mac_suffix}") diff --git a/tests/integration/test_object_id_no_friendly_name.py b/tests/integration/test_object_id_no_friendly_name.py index 73586dc785..1a60a787ed 100644 --- a/tests/integration/test_object_id_no_friendly_name.py +++ b/tests/integration/test_object_id_no_friendly_name.py @@ -86,8 +86,7 @@ async def test_object_id_no_friendly_name_with_mac_suffix( assert named_entities[0].object_id == "temperature" # Verify the full algorithm from PR summary works for ALL entities - # NOTE: `name_add_mac_suffix` needs to be added to DeviceInfoResponse. - # For now, we infer it from the device name ending with MAC suffix. + # Infer name_add_mac_suffix from device name ending with MAC suffix. mac_suffix = device_info.mac_address.replace(":", "")[-6:].lower() name_add_mac_suffix = device_info.name.endswith(f"-{mac_suffix}") @@ -167,8 +166,7 @@ async def test_object_id_no_friendly_name_no_mac_suffix( assert named_entities[0].object_id == "temperature" # Verify the full algorithm from PR summary works for ALL entities - # NOTE: `name_add_mac_suffix` needs to be added to DeviceInfoResponse. - # For now, we infer it from the device name ending with MAC suffix. + # Infer name_add_mac_suffix from device name ending with MAC suffix. mac_suffix = device_info.mac_address.replace(":", "")[-6:].lower() name_add_mac_suffix = device_info.name.endswith(f"-{mac_suffix}")