Adjust device_automation type hints in core components (#72207)
This commit is contained in:
parent
fb53e39f05
commit
5cfb31d28a
16 changed files with 176 additions and 51 deletions
|
@ -1,8 +1,6 @@
|
|||
"""Device automation helpers for toggle entity."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.automation import (
|
||||
|
@ -228,7 +226,7 @@ async def async_get_conditions(
|
|||
|
||||
async def async_get_triggers(
|
||||
hass: HomeAssistant, device_id: str, domain: str
|
||||
) -> list[dict[str, Any]]:
|
||||
) -> list[dict[str, str]]:
|
||||
"""List device triggers."""
|
||||
triggers = await entity.async_get_triggers(hass, device_id, domain)
|
||||
triggers.extend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue