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