Use Callback protocol for AutomationActionType (#76054)

This commit is contained in:
Marc Mueller 2022-08-09 22:10:26 +02:00 committed by GitHub
parent ad361b8fc2
commit 70aeaa3c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 11 deletions

View file

@ -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,