1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-14 01:54:11 +01:00

Remove capability_attributes from CalculatedState (#151672)

This commit is contained in:
Artur Pragacz
2025-11-10 08:06:02 +01:00
committed by GitHub
parent 1bd70454e1
commit 36268ffb73
+2 -4
View File
@@ -263,8 +263,6 @@ class CalculatedState:
state: str
# The union of all attributes, after overriding with entity registry settings
attributes: dict[str, Any]
# Capability attributes returned by the capability_attributes property
capability_attributes: Mapping[str, Any] | None
class CachedProperties(type):
@@ -1061,8 +1059,8 @@ class Entity(
@callback
def _async_calculate_state(self) -> CalculatedState:
"""Calculate state string and attribute mapping."""
state, attr, capabilities, _, _ = self.__async_calculate_state()
return CalculatedState(state, attr, capabilities)
state, attr, _, _, _ = self.__async_calculate_state()
return CalculatedState(state, attr)
def __async_calculate_state(
self,