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
11 changed files with 25 additions and 61 deletions

View File

@@ -14,10 +14,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.const import CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
from homeassistant.helpers.typing import ConfigType
@@ -244,7 +241,7 @@ def async_fire_triggers(conn: HKDevice, events: dict[tuple[int, int], Any]):
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> GetAutomationsResult:
) -> list[dict[str, str]]:
"""List device triggers for homekit devices."""
if device_id not in hass.data.get(TRIGGERS, {}):