Adjust device_automation type hints in kodi (#72131)

This commit is contained in:
epenet
2022-05-19 09:18:01 +02:00
committed by GitHub
parent 453c6af595
commit f144b518b2

View File

@@ -1,8 +1,6 @@
"""Provides device automations for Kodi."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant.components.automation import (
@@ -36,7 +34,7 @@ TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> list[dict[str, Any]]:
) -> list[dict[str, str]]:
"""List device triggers for Kodi devices."""
registry = entity_registry.async_get(hass)
triggers = []