Fix app name sorting in apple_tv (#109274)

This commit is contained in:
J. Nick Koston
2024-02-01 12:19:22 +01:00
committed by Franck Nijhof
parent e34ebcb195
commit 0b6df23ee5
@@ -155,7 +155,7 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity):
else:
self._app_list = {
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
}
self.async_write_ha_state()