Merge pull request #458 from AnthemisFoundry/fix_vera_dict

Fix Vera bug
This commit is contained in:
Paulus Schoutsen 2015-09-27 18:26:47 -07:00
commit e557e355db

View File

@ -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 + '%'