mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 03:19:34 +00:00
Drop GetAutomationsResult and GetAutomationCapabilitiesResult aliases (#72328)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable
|
||||
from typing import Protocol, cast
|
||||
from typing import Any, Protocol, cast
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -17,8 +17,6 @@ from homeassistant.helpers.typing import ConfigType
|
||||
from . import (
|
||||
DEVICE_TRIGGER_BASE_SCHEMA,
|
||||
DeviceAutomationType,
|
||||
GetAutomationCapabilitiesResult,
|
||||
GetAutomationsResult,
|
||||
async_get_device_automation_platform,
|
||||
)
|
||||
from .exceptions import InvalidDeviceAutomationConfig
|
||||
@@ -50,12 +48,12 @@ class DeviceAutomationTriggerProtocol(Protocol):
|
||||
|
||||
def async_get_trigger_capabilities(
|
||||
self, hass: HomeAssistant, config: ConfigType
|
||||
) -> GetAutomationCapabilitiesResult | Awaitable[GetAutomationCapabilitiesResult]:
|
||||
) -> dict[str, vol.Schema] | Awaitable[dict[str, vol.Schema]]:
|
||||
"""List trigger capabilities."""
|
||||
|
||||
def async_get_triggers(
|
||||
self, hass: HomeAssistant, device_id: str
|
||||
) -> GetAutomationsResult | Awaitable[GetAutomationsResult]:
|
||||
) -> list[dict[str, Any]] | Awaitable[list[dict[str, Any]]]:
|
||||
"""List triggers."""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user