From 7e2f5968ccc5095a0d1707680a0f32d4bf23d3f2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 19 May 2022 09:12:54 +0200 Subject: [PATCH] Adjust device_automation type hints in shelly (#72139) --- homeassistant/components/shelly/device_trigger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/shelly/device_trigger.py b/homeassistant/components/shelly/device_trigger.py index 3e839507127..c7d0f92336c 100644 --- a/homeassistant/components/shelly/device_trigger.py +++ b/homeassistant/components/shelly/device_trigger.py @@ -108,9 +108,9 @@ async def async_validate_trigger_config( async def async_get_triggers( hass: HomeAssistant, device_id: str -) -> list[dict[str, Any]]: +) -> list[dict[str, str]]: """List device triggers for Shelly devices.""" - triggers: list[dict[str, Any]] = [] + triggers: list[dict[str, str]] = [] if rpc_wrapper := get_rpc_device_wrapper(hass, device_id): input_triggers = get_rpc_input_triggers(rpc_wrapper.device)