From 4fb3a01c36b7c90f0b56ec4b34d49cea1fbcea36 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 20 May 2022 08:27:49 +0200 Subject: [PATCH] Adjust device_automation type hints in netatmo (#72136) * Adjust device_automation type hints in netatmo * Improve type hints --- homeassistant/components/netatmo/device_trigger.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/netatmo/device_trigger.py b/homeassistant/components/netatmo/device_trigger.py index ae62956b691..ce03aa91905 100644 --- a/homeassistant/components/netatmo/device_trigger.py +++ b/homeassistant/components/netatmo/device_trigger.py @@ -1,15 +1,16 @@ """Provides device automations for Netatmo.""" from __future__ import annotations -from typing import Any - import voluptuous as vol from homeassistant.components.automation import ( AutomationActionType, AutomationTriggerInfo, ) -from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA +from homeassistant.components.device_automation import ( + DEVICE_TRIGGER_BASE_SCHEMA, + GetAutomationsResult, +) from homeassistant.components.device_automation.exceptions import ( InvalidDeviceAutomationConfig, ) @@ -100,7 +101,7 @@ async def async_validate_trigger_config( async def async_get_triggers( hass: HomeAssistant, device_id: str -) -> list[dict[str, Any]]: +) -> GetAutomationsResult: """List device triggers for Netatmo devices.""" registry = entity_registry.async_get(hass) device_registry = dr.async_get(hass)