mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Type _attr_extra_state_attributes as a MutableMapping (#52616)
* Type extra_state_attributes as a MutableMapping * Update homeassistant/helpers/entity.py Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com> * Update homeassistant/helpers/entity.py Co-authored-by: Ruslan Sayfutdinov <ruslan@sayfutdinov.com>
This commit is contained in:
parent
0b8b45818d
commit
0fd88e7e66
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from abc import ABC
|
from abc import ABC
|
||||||
import asyncio
|
import asyncio
|
||||||
from collections.abc import Awaitable, Iterable, Mapping
|
from collections.abc import Awaitable, Iterable, Mapping, MutableMapping
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import functools as ft
|
import functools as ft
|
||||||
import logging
|
import logging
|
||||||
@ -227,7 +227,7 @@ class Entity(ABC):
|
|||||||
_attr_device_info: DeviceInfo | None = None
|
_attr_device_info: DeviceInfo | None = None
|
||||||
_attr_entity_picture: str | None = None
|
_attr_entity_picture: str | None = None
|
||||||
_attr_entity_registry_enabled_default: bool = True
|
_attr_entity_registry_enabled_default: bool = True
|
||||||
_attr_extra_state_attributes: Mapping[str, Any] | None = None
|
_attr_extra_state_attributes: MutableMapping[str, Any] | None = None
|
||||||
_attr_force_update: bool = False
|
_attr_force_update: bool = False
|
||||||
_attr_icon: str | None = None
|
_attr_icon: str | None = None
|
||||||
_attr_name: str | None = None
|
_attr_name: str | None = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user