Clean up state_attributes vs device_state_attributes
This commit is contained in:
parent
681b84e1bd
commit
f08b77dc4c
23 changed files with 66 additions and 138 deletions
|
@ -54,7 +54,7 @@ class CpuSpeedSensor(Entity):
|
|||
return self._unit_of_measurement
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
def device_state_attributes(self):
|
||||
""" Returns the state attributes. """
|
||||
if self.info is not None:
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue