Adjust device_automation type hints in core platforms 2/3 (#72210)
This commit is contained in:
parent
b10ee779f9
commit
3a0e816f1b
12 changed files with 38 additions and 28 deletions
|
@ -1,8 +1,6 @@
|
|||
"""Provides device trigger for lights."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.automation import (
|
||||
|
@ -36,7 +34,7 @@ async def async_attach_trigger(
|
|||
|
||||
async def async_get_triggers(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, Any]]:
|
||||
) -> list[dict[str, str]]:
|
||||
"""List device triggers."""
|
||||
return await toggle_entity.async_get_triggers(hass, device_id, DOMAIN)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue