Adjust device_automation type hints in nanoleaf (#72134)

pull/72126/head
epenet 2022-05-23 14:53:12 +02:00 committed by GitHub
parent dc76cce96b
commit 52686aae05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1,8 +1,6 @@
"""Provides device triggers for Nanoleaf."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant.components.automation import (
@ -38,7 +36,7 @@ TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> list[dict[str, Any]]:
) -> list[dict[str, str]]:
"""List device triggers for Nanoleaf devices."""
device_registry = dr.async_get(hass)
device_entry = device_registry.async_get(device_id)