From a779eda404f168cc3d979ea3805becb092113a38 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Wed, 18 Nov 2026 18:04:43 +0200 Subject: [PATCH] Fix Shelly input lock tests using removed constants (#193296) Co-authored-by: Claude Opus 5.5 --- tests/components/shelly/test_switch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/components/shelly/test_switch.py b/tests/components/shelly/test_switch.py index d95737d94f97..8bf126357988 100644 --- a/tests/components/shelly/test_switch.py +++ b/tests/components/shelly/test_switch.py @@ -784,8 +784,8 @@ async def test_rpc_switch_input_lock( await hass.services.async_call( SWITCH_DOMAIN, - SERVICE_TURN_ON, - {ATTR_ENTITY_ID: entity_id}, + SwitchService.TURN_ON, + {TargetKey.ENTITY_ID: entity_id}, blocking=True, ) mock_rpc_device.switch_setconfig.assert_awaited_once_with(0, {"in_locked": True}) @@ -843,8 +843,8 @@ async def test_rpc_cover_input_lock( await hass.services.async_call( SWITCH_DOMAIN, - SERVICE_TURN_OFF, - {ATTR_ENTITY_ID: entity_id}, + SwitchService.TURN_OFF, + {TargetKey.ENTITY_ID: entity_id}, blocking=True, ) mock_rpc_device.cover_setconfig.assert_awaited_once_with(0, {"in_locked": False})