mirror of
https://github.com/home-assistant/core.git
synced 2025-08-11 16:45:19 +02:00
Fix TypeError in SamsungTV (#68235)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -319,8 +319,9 @@ class SamsungTVWSBridge(SamsungTVBridge):
|
||||
def _get_app_list(self) -> dict[str, str] | None:
|
||||
"""Get installed app list."""
|
||||
if self._app_list is None and (remote := self._get_remote()):
|
||||
with contextlib.suppress(WebSocketTimeoutException):
|
||||
with contextlib.suppress(TypeError, WebSocketTimeoutException):
|
||||
raw_app_list: list[dict[str, str]] = remote.app_list()
|
||||
LOGGER.debug("Received app list: %s", raw_app_list)
|
||||
self._app_list = {
|
||||
app["name"]: app["appId"]
|
||||
for app in sorted(raw_app_list, key=lambda app: app["name"])
|
||||
|
Reference in New Issue
Block a user