Adjust device_automation type hints in wemo (#72141)

This commit is contained in:
epenet 2022-05-23 14:56:17 +02:00 committed by GitHub
parent 52686aae05
commit bcc3c93b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,6 @@
"""Triggers for WeMo devices."""
from __future__ import annotations
from typing import Any
from pywemo.subscribe import EVENT_TYPE_LONG_PRESS
import voluptuous as vol
@ -30,7 +28,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]]:
"""Return a list of triggers."""
wemo_trigger = {