Adjust device_automation type hints in core platforms 1/3 (#72209)
This commit is contained in:
parent
3a0e816f1b
commit
fb53e39f05
11 changed files with 52 additions and 25 deletions
|
@ -1,8 +1,6 @@
|
|||
"""Provides device automations for Climate."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.automation import (
|
||||
|
@ -65,7 +63,7 @@ TRIGGER_SCHEMA = vol.Any(HVAC_MODE_TRIGGER_SCHEMA, CURRENT_TRIGGER_SCHEMA)
|
|||
|
||||
async def async_get_triggers(
|
||||
hass: HomeAssistant, device_id: str
|
||||
) -> list[dict[str, Any]]:
|
||||
) -> list[dict[str, str]]:
|
||||
"""List device triggers for Climate devices."""
|
||||
registry = entity_registry.async_get(hass)
|
||||
triggers = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue