diff --git a/homeassistant/components/minecraft_server/sensor.py b/homeassistant/components/minecraft_server/sensor.py index 4b862f54715..fae004a015e 100644 --- a/homeassistant/components/minecraft_server/sensor.py +++ b/homeassistant/components/minecraft_server/sensor.py @@ -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] diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index c0b301b6fb6..fb071d438b1 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -5,7 +5,7 @@ from __future__ import annotations from abc import ABCMeta import asyncio from collections import deque -from collections.abc import Callable, Coroutine, Iterable, Mapping, MutableMapping +from collections.abc import Callable, Coroutine, Iterable, Mapping import dataclasses from enum import Enum, IntFlag, auto import functools as ft @@ -537,7 +537,7 @@ class Entity( _attr_entity_picture: str | None = None _attr_entity_registry_enabled_default: bool _attr_entity_registry_visible_default: bool - _attr_extra_state_attributes: MutableMapping[str, Any] + _attr_extra_state_attributes: dict[str, Any] _attr_force_update: bool _attr_icon: str | None _attr_name: str | None