Rename callback type

This commit is contained in:
abmantis
2025-10-01 22:12:51 +01:00
parent fba50af1c3
commit b8660b4248
4 changed files with 11 additions and 11 deletions

View File

@@ -23,8 +23,8 @@ from homeassistant.helpers.automation import move_top_level_schema_fields_to_opt
from homeassistant.helpers.trigger import (
DATA_PLUGGABLE_ACTIONS,
PluggableAction,
RunTriggerActionCallback,
Trigger,
TriggerActionRunnerCallback,
_async_get_trigger_platform,
async_initialize_triggers,
async_validate_trigger_config,
@@ -464,7 +464,7 @@ async def test_platform_multiple_triggers(hass: HomeAssistant) -> None:
"""Mock trigger 1."""
async def async_attach_runner(
self, run_action: RunTriggerActionCallback
self, run_action: TriggerActionRunnerCallback
) -> CALLBACK_TYPE:
"""Attach a trigger."""
run_action("trigger 1 desc", {"extra": "test_trigger_1"})
@@ -473,7 +473,7 @@ async def test_platform_multiple_triggers(hass: HomeAssistant) -> None:
"""Mock trigger 2."""
async def async_attach_runner(
self, run_action: RunTriggerActionCallback
self, run_action: TriggerActionRunnerCallback
) -> CALLBACK_TYPE:
"""Attach a trigger."""
run_action("trigger 2 desc", {"extra": "test_trigger_2"})