Fix copy-paste errors in alarm_control_panel tests (#122755)

This commit is contained in:
Erik Montnemery 2024-07-29 10:57:34 +02:00 committed by GitHub
parent 9b497aebb4
commit 2a5cb8da32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,7 @@ async def code_arm_required() -> bool:
@pytest.fixture(name="supported_features") @pytest.fixture(name="supported_features")
async def lock_supported_features() -> AlarmControlPanelEntityFeature: async def alarm_control_panel_supported_features() -> AlarmControlPanelEntityFeature:
"""Return the supported features for the test alarm control panel entity.""" """Return the supported features for the test alarm control panel entity."""
return ( return (
AlarmControlPanelEntityFeature.ARM_AWAY AlarmControlPanelEntityFeature.ARM_AWAY
@ -142,7 +142,7 @@ async def lock_supported_features() -> AlarmControlPanelEntityFeature:
@pytest.fixture(name="mock_alarm_control_panel_entity") @pytest.fixture(name="mock_alarm_control_panel_entity")
async def setup_lock_platform_test_entity( async def setup_alarm_control_panel_platform_test_entity(
hass: HomeAssistant, hass: HomeAssistant,
entity_registry: er.EntityRegistry, entity_registry: er.EntityRegistry,
code_format: CodeFormat | None, code_format: CodeFormat | None,