Skip to content

Commit

Permalink
Fixes issue with app list names containing HTML entities
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonDusseau committed Feb 24, 2020
1 parent b53a0df commit e7ad162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion braviaproapi/bravia/appcontrol.py
@@ -1,3 +1,4 @@
import html
from enum import Enum
from .errors import HttpError, ApiError, InternalError, AppLaunchError, NoFocusedTextFieldError, \
ErrorCode, get_error_message, EncryptionError
Expand Down Expand Up @@ -70,7 +71,7 @@ def get_application_list(self, exclude_builtin=False):

for app_info in response:
app = {
"name": coalesce_none_or_empty(app_info.get("title")),
"name": html.unescape(coalesce_none_or_empty(app_info.get("title"))),
"uri": coalesce_none_or_empty(app_info.get("uri")),
"icon": coalesce_none_or_empty(app_info.get("icon"))
}
Expand Down

0 comments on commit e7ad162

Please sign in to comment.