mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +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():
|
if not self._client.is_connected():
|
||||||
await self._client.connect()
|
await self._client.connect()
|
||||||
|
|
||||||
data = kwargs.get(ATTR_DATA, {})
|
data = kwargs.get(ATTR_DATA)
|
||||||
icon_path = data.get(CONF_ICON)
|
icon_path = data.get(CONF_ICON) if data else None
|
||||||
await self._client.send_message(message, icon_path=icon_path)
|
await self._client.send_message(message, icon_path=icon_path)
|
||||||
except WebOsTvPairError:
|
except WebOsTvPairError:
|
||||||
_LOGGER.error("Pairing with TV failed")
|
_LOGGER.error("Pairing with TV failed")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user