mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Handle default notify data in webostv (#66770)
This commit is contained in:
parent
cd00464285
commit
90a0d5518d
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user