Update typing 11 (#48072)
This commit is contained in:
parent
99f9f8dec0
commit
3d2b81a401
45 changed files with 206 additions and 154 deletions
|
@ -1,5 +1,5 @@
|
|||
"""Provides device automations for Netatmo."""
|
||||
from typing import List
|
||||
from __future__ import annotations
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
|
@ -82,7 +82,7 @@ async def async_validate_trigger_config(hass, config):
|
|||
return config
|
||||
|
||||
|
||||
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 Netatmo devices."""
|
||||
registry = await entity_registry.async_get_registry(hass)
|
||||
device_registry = await hass.helpers.device_registry.async_get_registry()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue