mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Sort Apple TV app list by name (#65386)
This commit is contained in:
parent
3718d7fca8
commit
476a694248
@ -162,7 +162,10 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity):
|
||||
except exceptions.ProtocolError:
|
||||
_LOGGER.exception("Failed to update app list")
|
||||
else:
|
||||
self._app_list = {app.name: app.identifier for app in apps}
|
||||
self._app_list = {
|
||||
app.name: app.identifier
|
||||
for app in sorted(apps, key=lambda app: app.name.lower())
|
||||
}
|
||||
self.async_write_ha_state()
|
||||
|
||||
@callback
|
||||
|
Loading…
x
Reference in New Issue
Block a user