1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Update typing 16 (#48087)

This commit is contained in:
Marc Mueller
2021-03-18 22:58:19 +01:00
committed by GitHub
parent 0f5efca76b
commit 4cb7718192
59 changed files with 180 additions and 166 deletions

View File

@@ -1,5 +1,5 @@
"""Provide the device conditions for NEW_NAME."""
from typing import Dict, List
from __future__ import annotations
import voluptuous as vol
@@ -33,7 +33,7 @@ CONDITION_SCHEMA = DEVICE_CONDITION_BASE_SCHEMA.extend(
async def async_get_conditions(
hass: HomeAssistant, device_id: str
) -> List[Dict[str, str]]:
) -> list[dict[str, str]]:
"""List device conditions for NEW_NAME devices."""
registry = await entity_registry.async_get_registry(hass)
conditions = []