mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix app name sorting in apple_tv (#109274)
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user