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:
parent
668d018e9c
commit
346a724ac3
52 changed files with 106 additions and 71 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue