Adjust device_automation type hints in arcam_fmj (#72193)

This commit is contained in:
epenet 2022-05-20 08:42:22 +02:00 committed by GitHub
parent 654b095498
commit 71d6a17073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,10 @@ from homeassistant.components.automation import (
AutomationActionType, AutomationActionType,
AutomationTriggerInfo, AutomationTriggerInfo,
) )
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.components.device_automation import (
DEVICE_TRIGGER_BASE_SCHEMA,
GetAutomationsResult,
)
from homeassistant.const import ( from homeassistant.const import (
ATTR_ENTITY_ID, ATTR_ENTITY_ID,
CONF_DEVICE_ID, CONF_DEVICE_ID,
@ -33,7 +36,7 @@ TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
async def async_get_triggers( async def async_get_triggers(
hass: HomeAssistant, device_id: str hass: HomeAssistant, device_id: str
) -> list[dict[str, str]]: ) -> GetAutomationsResult:
"""List device triggers for Arcam FMJ Receiver control devices.""" """List device triggers for Arcam FMJ Receiver control devices."""
registry = entity_registry.async_get(hass) registry = entity_registry.async_get(hass)
triggers = [] triggers = []