Use standardised datetime format
This commit is contained in:
parent
e7520ef401
commit
68d92c3196
29 changed files with 154 additions and 162 deletions
|
@ -49,8 +49,7 @@ class VeraBinarySensor(VeraDevice, BinarySensorDevice):
|
|||
last_tripped = self.vera_device.last_trip
|
||||
if last_tripped is not None:
|
||||
utc_time = dt_util.utc_from_timestamp(int(last_tripped))
|
||||
attr[ATTR_LAST_TRIP_TIME] = dt_util.datetime_to_str(
|
||||
utc_time)
|
||||
attr[ATTR_LAST_TRIP_TIME] = utc_time.isoformat()
|
||||
else:
|
||||
attr[ATTR_LAST_TRIP_TIME] = None
|
||||
tripped = self.vera_device.is_tripped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue