mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fix app name sorting in apple_tv (#109274)
This commit is contained in:
parent
723d9c4c8a
commit
5d3364521f
@ -155,7 +155,7 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity):
|
|||||||
else:
|
else:
|
||||||
self._app_list = {
|
self._app_list = {
|
||||||
app_name: app.identifier
|
app_name: app.identifier
|
||||||
for app in sorted(apps, key=lambda app: app_name.lower())
|
for app in sorted(apps, key=lambda app: (app.name or "").lower())
|
||||||
if (app_name := app.name) is not None
|
if (app_name := app.name) is not None
|
||||||
}
|
}
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user