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

This commit is contained in:
epenet 2022-05-23 16:01:40 +02:00 committed by GitHub
parent 571c90b8cf
commit b10ee779f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 44 additions and 26 deletions

View file

@ -1,8 +1,6 @@
"""Provides device triggers for update entities."""
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)