mirror of
https://github.com/home-assistant/core.git
synced 2026-09-02 10:17:26 -05:00
add key parameter (#23381)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user