Drop GetAutomationsResult and GetAutomationCapabilitiesResult aliases (#72328)
This commit is contained in:
parent
31b53e7fc6
commit
421167c548
11 changed files with 25 additions and 61 deletions
|
@ -10,12 +10,7 @@ from homeassistant.const import CONF_DOMAIN
|
|||
from homeassistant.core import Context, HomeAssistant
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from . import (
|
||||
DeviceAutomationType,
|
||||
GetAutomationCapabilitiesResult,
|
||||
GetAutomationsResult,
|
||||
async_get_device_automation_platform,
|
||||
)
|
||||
from . import DeviceAutomationType, async_get_device_automation_platform
|
||||
from .exceptions import InvalidDeviceAutomationConfig
|
||||
|
||||
|
||||
|
@ -43,12 +38,12 @@ class DeviceAutomationActionProtocol(Protocol):
|
|||
|
||||
def async_get_action_capabilities(
|
||||
self, hass: HomeAssistant, config: ConfigType
|
||||
) -> GetAutomationCapabilitiesResult | Awaitable[GetAutomationCapabilitiesResult]:
|
||||
) -> dict[str, vol.Schema] | Awaitable[dict[str, vol.Schema]]:
|
||||
"""List action capabilities."""
|
||||
|
||||
def async_get_actions(
|
||||
self, hass: HomeAssistant, device_id: str
|
||||
) -> GetAutomationsResult | Awaitable[GetAutomationsResult]:
|
||||
) -> list[dict[str, Any]] | Awaitable[list[dict[str, Any]]]:
|
||||
"""List actions."""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue