Update typing 05 (#48038)

This commit is contained in:
Marc Mueller 2021-03-17 23:43:55 +01:00 committed by GitHub
parent 76199c0eb2
commit 7c0734bdd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 315 additions and 251 deletions

View file

@ -1,5 +1,5 @@
"""Provides device automations for Cover."""
from typing import List
from __future__ import annotations
import voluptuous as vol
@ -65,7 +65,7 @@ STATE_TRIGGER_SCHEMA = TRIGGER_BASE_SCHEMA.extend(
TRIGGER_SCHEMA = vol.Any(POSITION_TRIGGER_SCHEMA, STATE_TRIGGER_SCHEMA)
async def async_get_triggers(hass: HomeAssistant, device_id: str) -> List[dict]:
async def async_get_triggers(hass: HomeAssistant, device_id: str) -> list[dict]:
"""List device triggers for Cover devices."""
registry = await entity_registry.async_get_registry(hass)
triggers = []