Adjust device_automation type hints in core platforms 2/3 (#72210)

This commit is contained in:
epenet 2022-05-23 16:02:36 +02:00 committed by GitHub
parent b10ee779f9
commit 3a0e816f1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 38 additions and 28 deletions

View file

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