Update typing 14 (#48078)
This commit is contained in:
parent
7d196abc4a
commit
dcca29ef68
73 changed files with 614 additions and 521 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Xbox friends binary sensors."""
|
||||
from __future__ import annotations
|
||||
|
||||
from functools import partial
|
||||
from typing import Dict, List
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorEntity
|
||||
from homeassistant.core import callback
|
||||
|
@ -44,7 +45,7 @@ class XboxBinarySensorEntity(XboxBaseSensorEntity, BinarySensorEntity):
|
|||
@callback
|
||||
def async_update_friends(
|
||||
coordinator: XboxUpdateCoordinator,
|
||||
current: Dict[str, List[XboxBinarySensorEntity]],
|
||||
current: dict[str, list[XboxBinarySensorEntity]],
|
||||
async_add_entities,
|
||||
) -> None:
|
||||
"""Update friends."""
|
||||
|
@ -73,7 +74,7 @@ def async_update_friends(
|
|||
async def async_remove_entities(
|
||||
xuid: str,
|
||||
coordinator: XboxUpdateCoordinator,
|
||||
current: Dict[str, XboxBinarySensorEntity],
|
||||
current: dict[str, XboxBinarySensorEntity],
|
||||
) -> None:
|
||||
"""Remove friend sensors from Home Assistant."""
|
||||
registry = await async_get_entity_registry(coordinator.hass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue