mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Adjust device_automation type hints in nanoleaf (#72134)
This commit is contained in:
parent
dc76cce96b
commit
52686aae05
@ -1,8 +1,6 @@
|
|||||||
"""Provides device triggers for Nanoleaf."""
|
"""Provides device triggers for Nanoleaf."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.automation import (
|
from homeassistant.components.automation import (
|
||||||
@ -38,7 +36,7 @@ TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
|
|||||||
|
|
||||||
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 Nanoleaf devices."""
|
"""List device triggers for Nanoleaf devices."""
|
||||||
device_registry = dr.async_get(hass)
|
device_registry = dr.async_get(hass)
|
||||||
device_entry = device_registry.async_get(device_id)
|
device_entry = device_registry.async_get(device_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user