Skip to content
Snippets Groups Projects
Unverified Commit 90a0d551 authored by Shay Levy's avatar Shay Levy Committed by GitHub
Browse files

Handle default notify data in webostv (#66770)

parent cd004642
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ class LgWebOSNotificationService(BaseNotificationService):
if not self._client.is_connected():
await self._client.connect()
data = kwargs.get(ATTR_DATA, {})
icon_path = data.get(CONF_ICON)
data = kwargs.get(ATTR_DATA)
icon_path = data.get(CONF_ICON) if data else None
await self._client.send_message(message, icon_path=icon_path)
except WebOsTvPairError:
_LOGGER.error("Pairing with TV failed")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment