mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
add key parameter (#23381)
This commit is contained in:
parent
d2e0c6dbc2
commit
e182b95921
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user