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:
Erik Montnemery
2021-03-21 10:38:24 +01:00
committed by GitHub
parent 668d018e9c
commit 346a724ac3
52 changed files with 106 additions and 71 deletions

View File

@@ -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}