Adjust device_automation type hints in core components (#72207)

This commit is contained in:
epenet 2022-05-23 16:07:34 +02:00 committed by GitHub
parent fb53e39f05
commit 5cfb31d28a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 176 additions and 51 deletions

View file

@ -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(