Clean up state_attributes vs device_state_attributes
This commit is contained in:
1 parent
681b84e1bd
commit
f08b77dc4c
23 files changed
+66
-138
No files matched your search
@@ -118,7 +118,7 @@ class VeraSensor(Entity):
|
||||
return '%'
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
def device_state_attributes(self):
|
||||
attr = {}
|
||||
if self.vera_device.has_battery:
|
||||
attr[ATTR_BATTERY_LEVEL] = self.vera_device.battery_level + '%'
|
||||
|
||||
Reference in new issue
Block a user