mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Fix Shelly input lock tests using removed constants (#193296)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c905f735de
commit
a779eda404
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user