Adjust device_automation type hints in homekit_controller (#72199)
This commit is contained in:
parent
3604bb4c66
commit
ebc883b43f
1 changed files with 5 additions and 2 deletions
|
@ -14,7 +14,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 CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE
|
from homeassistant.const import CONF_DEVICE_ID, CONF_DOMAIN, CONF_PLATFORM, CONF_TYPE
|
||||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
from homeassistant.core import CALLBACK_TYPE, HomeAssistant, callback
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
@ -241,7 +244,7 @@ def async_fire_triggers(conn: HKDevice, events: dict[tuple[int, int], Any]):
|
||||||
|
|
||||||
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 homekit devices."""
|
"""List device triggers for homekit devices."""
|
||||||
|
|
||||||
if device_id not in hass.data.get(TRIGGERS, {}):
|
if device_id not in hass.data.get(TRIGGERS, {}):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue