Adjust device_automation type hints in nest (#72197)
parent
5f7594268a
commit
85ef0e3bd6
|
@ -7,7 +7,10 @@ from homeassistant.components.automation import (
|
|||
AutomationActionType,
|
||||
AutomationTriggerInfo,
|
||||
)
|
||||
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation import (
|
||||
DEVICE_TRIGGER_BASE_SCHEMA,
|
||||
GetAutomationsResult,
|
||||
)
|
||||
from homeassistant.components.device_automation.exceptions import (
|
||||
InvalidDeviceAutomationConfig,
|
||||
)
|
||||
|
@ -64,7 +67,7 @@ async def async_get_device_trigger_types(
|
|||
|
||||
async def async_get_triggers(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, str]]:
|
||||
) -> GetAutomationsResult:
|
||||
"""List device triggers for a Nest device."""
|
||||
nest_device_id = async_get_nest_device_id(hass, device_id)
|
||||
if not nest_device_id:
|
||||
|
|
Loading…
Reference in New Issue