mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Adjust device_automation type hints in kodi (#72131)
This commit is contained in:
parent
453c6af595
commit
f144b518b2
@ -1,8 +1,6 @@
|
|||||||
"""Provides device automations for Kodi."""
|
"""Provides device automations for Kodi."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.automation import (
|
from homeassistant.components.automation import (
|
||||||
@ -36,7 +34,7 @@ TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
|
|||||||
|
|
||||||
async def async_get_triggers(
|
async def async_get_triggers(
|
||||||
hass: HomeAssistant, device_id: str
|
hass: HomeAssistant, device_id: str
|
||||||
) -> list[dict[str, Any]]:
|
) -> list[dict[str, str]]:
|
||||||
"""List device triggers for Kodi devices."""
|
"""List device triggers for Kodi devices."""
|
||||||
registry = entity_registry.async_get(hass)
|
registry = entity_registry.async_get(hass)
|
||||||
triggers = []
|
triggers = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user