From df3e3b52a0ca221f029a880fb5bfa0786c3b72b9 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 23 May 2022 14:34:55 +0200 Subject: [PATCH] Adjust device_automation type hints in lcn (#72132) --- homeassistant/components/lcn/device_trigger.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/lcn/device_trigger.py b/homeassistant/components/lcn/device_trigger.py index 35575a442b2..a6fc17759b8 100644 --- a/homeassistant/components/lcn/device_trigger.py +++ b/homeassistant/components/lcn/device_trigger.py @@ -1,8 +1,6 @@ """Provides device triggers for LCN.""" from __future__ import annotations -from typing import Any - import voluptuous as vol from homeassistant.components.automation import ( @@ -53,7 +51,7 @@ TYPE_SCHEMAS = { async def async_get_triggers( hass: HomeAssistant, device_id: str -) -> list[dict[str, Any]]: +) -> list[dict[str, str]]: """List device triggers for LCN devices.""" device_registry = dr.async_get(hass) if (device := device_registry.async_get(device_id)) is None: @@ -101,6 +99,8 @@ async def async_attach_trigger( ) -async def async_get_trigger_capabilities(hass: HomeAssistant, config: dict) -> dict: +async def async_get_trigger_capabilities( + hass: HomeAssistant, config: ConfigType +) -> dict[str, vol.Schema]: """List trigger capabilities.""" return TYPE_SCHEMAS.get(config[CONF_TYPE], {})