Adjust device_automation type hints in nest (#72197)
This commit is contained in:
parent
5f7594268a
commit
85ef0e3bd6
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue