Adjust device_automation type hints in nest (#72135)

This commit is contained in:
epenet 2022-05-19 15:50:32 +02:00 committed by GitHub
parent ed1c2ea2b8
commit f166a47df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
"""Provides device automations for Nest."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant.components.automation import (
@ -66,7 +64,7 @@ async def async_get_device_trigger_types(
async def async_get_triggers(
hass: HomeAssistant, device_id: str
) -> list[dict[str, Any]]:
) -> list[dict[str, str]]:
"""List device triggers for a Nest device."""
nest_device_id = async_get_nest_device_id(hass, device_id)
if not nest_device_id: