Skip to content

Commit 0ec3a22

Browse files
authored
Remove device_state_attributes property from entity base class (home-assistant#105650)
1 parent 9020dbb commit 0ec3a22

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

homeassistant/helpers/entity.py

-9
Original file line numberDiff line numberDiff line change
@@ -540,15 +540,6 @@ def state_attributes(self) -> dict[str, Any] | None:
540540
"""
541541
return None
542542

543-
@property
544-
def device_state_attributes(self) -> Mapping[str, Any] | None:
545-
"""Return entity specific state attributes.
546-
547-
This method is deprecated, platform classes should implement
548-
extra_state_attributes instead.
549-
"""
550-
return None
551-
552543
@property
553544
def extra_state_attributes(self) -> Mapping[str, Any] | None:
554545
"""Return entity specific state attributes.

pylint/plugins/hass_enforce_type_hints.py

-4
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,6 @@ class ClassTypeHintMatch:
587587
function_name="state_attributes",
588588
return_type=["dict[str, Any]", None],
589589
),
590-
TypeHintMatch(
591-
function_name="device_state_attributes",
592-
return_type=["Mapping[str, Any]", None],
593-
),
594590
TypeHintMatch(
595591
function_name="extra_state_attributes",
596592
return_type=["Mapping[str, Any]", None],

0 commit comments

Comments
 (0)