mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Adjust device_automation type hints in nest (#72197)
This commit is contained in:
parent
5f7594268a
commit
85ef0e3bd6
@ -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.components.device_automation.exceptions import (
|
from homeassistant.components.device_automation.exceptions import (
|
||||||
InvalidDeviceAutomationConfig,
|
InvalidDeviceAutomationConfig,
|
||||||
)
|
)
|
||||||
@ -64,7 +67,7 @@ async def async_get_device_trigger_types(
|
|||||||
|
|
||||||
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 a Nest device."""
|
"""List device triggers for a Nest device."""
|
||||||
nest_device_id = async_get_nest_device_id(hass, device_id)
|
nest_device_id = async_get_nest_device_id(hass, device_id)
|
||||||
if not nest_device_id:
|
if not nest_device_id:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user