mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Sort Apple TV app list by name (#65386)
This commit is contained in:
parent
fcd14e2830
commit
91023cf132
@ -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