add key parameter (#23381)

This commit is contained in:
panosmz 2019-04-26 00:35:30 +03:00 committed by Fabian Affolter
parent d2e0c6dbc2
commit e182b95921

View File

@ -187,5 +187,5 @@ class OASATelematicsData():
return return
# Sort the data by time # Sort the data by time
sort = sorted(self.info, itemgetter(ATTR_NEXT_ARRIVAL)) sort = sorted(self.info, key=itemgetter(ATTR_NEXT_ARRIVAL))
self.info = sort self.info = sort