From 1c44ce1d7e1af9243e5d5e02bf5305c827e57161 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 2 Jul 2025 11:16:39 +0000 Subject: [PATCH] Comments --- tests/helpers/test_service.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/helpers/test_service.py b/tests/helpers/test_service.py index e4e27c449bb..24f0c0841cc 100644 --- a/tests/helpers/test_service.py +++ b/tests/helpers/test_service.py @@ -1763,8 +1763,8 @@ _DEPRECATED_VERIFY_DOMAIN_CONTROL_MESSAGE = ( # Check that with or without hass behaves the same ("decorator", "in_caplog"), [ - (service.verify_domain_control, True), # deprecated with hass - (lambda _, domain: service.verify_domain_control(domain), False), + (service.verify_domain_control, True), # old pass-through + (lambda _, domain: service.verify_domain_control(domain), False), # new ], ) async def test_domain_control_not_async( @@ -1791,8 +1791,8 @@ async def test_domain_control_not_async( # Check that with or without hass behaves the same ("decorator", "in_caplog"), [ - (service.verify_domain_control, True), # deprecated with hass - (lambda _, domain: service.verify_domain_control(domain), False), + (service.verify_domain_control, True), # old pass-through + (lambda _, domain: service.verify_domain_control(domain), False), # new ], ) async def test_domain_control_unknown( @@ -1836,8 +1836,8 @@ async def test_domain_control_unknown( # Check that with or without hass behaves the same ("decorator", "in_caplog"), [ - (service.verify_domain_control, True), # deprecated with hass - (lambda _, domain: service.verify_domain_control(domain), False), + (service.verify_domain_control, True), # old pass-through + (lambda _, domain: service.verify_domain_control(domain), False), # new ], ) async def test_domain_control_unauthorized( @@ -1889,8 +1889,8 @@ async def test_domain_control_unauthorized( # Check that with or without hass behaves the same ("decorator", "in_caplog"), [ - (service.verify_domain_control, True), # deprecated with hass - (lambda _, domain: service.verify_domain_control(domain), False), + (service.verify_domain_control, True), # old pass-through + (lambda _, domain: service.verify_domain_control(domain), False), # new ], ) async def test_domain_control_admin( @@ -1941,8 +1941,8 @@ async def test_domain_control_admin( # Check that with or without hass behaves the same ("decorator", "in_caplog"), [ - (service.verify_domain_control, True), # deprecated with hass - (lambda _, domain: service.verify_domain_control(domain), False), + (service.verify_domain_control, True), # old pass-through + (lambda _, domain: service.verify_domain_control(domain), False), # new ], ) async def test_domain_control_no_user(