From 36268ffb732b08d18e95c06ccbc7c838ce277e20 Mon Sep 17 00:00:00 2001 From: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com> Date: Mon, 10 Nov 2025 08:06:02 +0100 Subject: [PATCH] Remove capability_attributes from CalculatedState (#151672) --- homeassistant/helpers/entity.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 6272495bcece..2abbd30a598c 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -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,