Use dict instead of MutableMapping [extra_state_attributes] (#115319)
This commit is contained in:
parent
968de08e4b
commit
d8c8d1a297
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable, MutableMapping
|
||||
from collections.abc import Callable
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
|
@ -37,7 +37,7 @@ class MinecraftServerSensorEntityDescription(SensorEntityDescription):
|
|||
"""Class describing Minecraft Server sensor entities."""
|
||||
|
||||
value_fn: Callable[[MinecraftServerData], StateType]
|
||||
attributes_fn: Callable[[MinecraftServerData], MutableMapping[str, Any]] | None
|
||||
attributes_fn: Callable[[MinecraftServerData], dict[str, Any]] | None
|
||||
supported_server_types: set[MinecraftServerType]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue