mirror of
https://github.com/home-assistant/core.git
synced 2025-11-04 16:39:28 +00:00
Mark base components' state_attribute @final, rename others to extra_state_attributes (#48161)
* Mark base state_attributes @final, rename others to extra_state_attributes * Fix calendar, update tests
This commit is contained in:
@@ -152,7 +152,7 @@ class OpenCVImageProcessor(ImageProcessingEntity):
|
||||
return self._total_matches
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return device specific state attributes."""
|
||||
return {ATTR_MATCHES: self._matches, ATTR_TOTAL_MATCHES: self._total_matches}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user