mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Adjust device_automation type hints in tasmota (#72140)
This commit is contained in:
parent
7e2f5968cc
commit
694dc97ac5
@ -3,7 +3,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
from hatasmota.models import DiscoveryHashType
|
from hatasmota.models import DiscoveryHashType
|
||||||
@ -265,7 +264,7 @@ async def async_remove_triggers(hass: HomeAssistant, device_id: str) -> None:
|
|||||||
|
|
||||||
async def async_get_triggers(
|
async def async_get_triggers(
|
||||||
hass: HomeAssistant, device_id: str
|
hass: HomeAssistant, device_id: str
|
||||||
) -> list[dict[str, Any]]:
|
) -> list[dict[str, str]]:
|
||||||
"""List device triggers for a Tasmota device."""
|
"""List device triggers for a Tasmota device."""
|
||||||
triggers: list[dict[str, str]] = []
|
triggers: list[dict[str, str]] = []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user