Skip to content

Commit 36268ff

Browse files
authored
Remove capability_attributes from CalculatedState (home-assistant#151672)
1 parent 1bd7045 commit 36268ff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

homeassistant/helpers/entity.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ class CalculatedState:
263263
state: str
264264
# The union of all attributes, after overriding with entity registry settings
265265
attributes: dict[str, Any]
266-
# Capability attributes returned by the capability_attributes property
267-
capability_attributes: Mapping[str, Any] | None
268266

269267

270268
class CachedProperties(type):
@@ -1061,8 +1059,8 @@ def _friendly_name_internal(self) -> str | None:
10611059
@callback
10621060
def _async_calculate_state(self) -> CalculatedState:
10631061
"""Calculate state string and attribute mapping."""
1064-
state, attr, capabilities, _, _ = self.__async_calculate_state()
1065-
return CalculatedState(state, attr, capabilities)
1062+
state, attr, _, _, _ = self.__async_calculate_state()
1063+
return CalculatedState(state, attr)
10661064

10671065
def __async_calculate_state(
10681066
self,

0 commit comments

Comments
 (0)