Drop GetAutomationsResult and GetAutomationCapabilitiesResult aliases (#72328)

This commit is contained in:
epenet 2022-05-23 12:18:17 +02:00 committed by GitHub
parent 31b53e7fc6
commit 421167c548
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 61 deletions

View file

@ -8,10 +8,7 @@ from homeassistant.components.automation import (
AutomationActionType,
AutomationTriggerInfo,
)
from homeassistant.components.device_automation import (
DEVICE_TRIGGER_BASE_SCHEMA,
GetAutomationsResult,
)
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
from homeassistant.components.device_automation.exceptions import (
InvalidDeviceAutomationConfig,
)
@ -66,7 +63,7 @@ def async_get_device_trigger_types(
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> GetAutomationsResult:
) -> list[dict[str, str]]:
"""List device triggers for a Nest device."""
nest_device_id = async_get_nest_device_id(hass, device_id)
if not nest_device_id: