mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Remove device_state_attributes property from entity base class (#105650)
This commit is contained in:
@@ -540,15 +540,6 @@ class Entity(ABC):
|
||||
"""
|
||||
return None
|
||||
|
||||
@property
|
||||
def device_state_attributes(self) -> Mapping[str, Any] | None:
|
||||
"""Return entity specific state attributes.
|
||||
|
||||
This method is deprecated, platform classes should implement
|
||||
extra_state_attributes instead.
|
||||
"""
|
||||
return None
|
||||
|
||||
@property
|
||||
def extra_state_attributes(self) -> Mapping[str, Any] | None:
|
||||
"""Return entity specific state attributes.
|
||||
|
||||
Reference in New Issue
Block a user