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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 106 additions and 71 deletions

View file

@ -73,8 +73,8 @@ class OpenHardwareMonitorDevice(Entity):
return self.value
@property
def state_attributes(self):
"""Return the state attributes of the sun."""
def extra_state_attributes(self):
"""Return the state attributes of the entity."""
return self.attributes
@classmethod