Missed change.

pull/902/head
pavoni 2016-01-15 21:42:51 +00:00
parent 541b268721
commit c2f5eb3073
2 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ class VeraSensor(Entity):
if self.vera_device.is_armable:
armed = self.vera_device.is_armed
attr[ATTR_ARMED] = 'True' if armed == '1' else 'False'
attr[ATTR_ARMED] = 'True' if armed else 'False'
if self.vera_device.is_trippable:
last_tripped = self.vera_device.last_trip
@ -136,7 +136,7 @@ class VeraSensor(Entity):
else:
attr[ATTR_LAST_TRIP_TIME] = None
tripped = self.vera_device.is_tripped
attr[ATTR_TRIPPED] = 'True' if tripped == '1' else 'False'
attr[ATTR_TRIPPED] = 'True' if tripped else 'False'
attr['Vera Device Id'] = self.vera_device.vera_device_id
return attr

View File

@ -110,7 +110,7 @@ class VeraSwitch(SwitchDevice):
if self.vera_device.is_armable:
armed = self.vera_device.is_armed
attr[ATTR_ARMED] = 'True' if armed == '1' else 'False'
attr[ATTR_ARMED] = 'True' if armed else 'False'
if self.vera_device.is_trippable:
last_tripped = self.vera_device.last_trip
@ -121,7 +121,7 @@ class VeraSwitch(SwitchDevice):
else:
attr[ATTR_LAST_TRIP_TIME] = None
tripped = self.vera_device.is_tripped
attr[ATTR_TRIPPED] = 'True' if tripped == '1' else 'False'
attr[ATTR_TRIPPED] = 'True' if tripped else 'False'
attr['Vera Device Id'] = self.vera_device.vera_device_id