mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Merge pull request #458 from AnthemisFoundry/fix_vera_dict
Fix Vera bug
This commit is contained in:
commit
e557e355db
@ -122,7 +122,7 @@ class VeraSwitch(ToggleEntity):
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
attr = super().state_attributes
|
||||
attr = super().state_attributes or {}
|
||||
|
||||
if self.vera_device.has_battery:
|
||||
attr[ATTR_BATTERY_LEVEL] = self.vera_device.battery_level + '%'
|
||||
|
Loading…
x
Reference in New Issue
Block a user