Update typing 12 (#48073)
This commit is contained in:
parent
6cd6ad6904
commit
a3cd1854f6
75 changed files with 399 additions and 312 deletions
|
@ -1,5 +1,7 @@
|
|||
"""Support for ReCollect Waste sensors."""
|
||||
from typing import Callable, List
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Callable
|
||||
|
||||
from aiorecollect.client import PickupType
|
||||
import voluptuous as vol
|
||||
|
@ -36,8 +38,8 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
@callback
|
||||
def async_get_pickup_type_names(
|
||||
entry: ConfigEntry, pickup_types: List[PickupType]
|
||||
) -> List[str]:
|
||||
entry: ConfigEntry, pickup_types: list[PickupType]
|
||||
) -> list[str]:
|
||||
"""Return proper pickup type names from their associated objects."""
|
||||
return [
|
||||
t.friendly_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue