Use Callback protocol for AutomationActionType (#76054)
This commit is contained in:
parent
ad361b8fc2
commit
70aeaa3c76
5 changed files with 32 additions and 11 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Offer calendar automation rules."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Coroutine
|
||||
import datetime
|
||||
import logging
|
||||
from typing import Any
|
||||
|
@ -47,7 +48,7 @@ class CalendarEventListener:
|
|||
def __init__(
|
||||
self,
|
||||
hass: HomeAssistant,
|
||||
job: HassJob,
|
||||
job: HassJob[..., Coroutine[Any, Any, None]],
|
||||
trigger_data: dict[str, Any],
|
||||
entity: CalendarEntity,
|
||||
event_type: str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue