From ef85afde6dc5da655ef05ab7382261815758efd1 Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Fri, 18 Feb 2022 00:46:18 +0200 Subject: [PATCH] Handle default notify data in webostv (#66770) --- homeassistant/components/webostv/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/webostv/notify.py b/homeassistant/components/webostv/notify.py index 7348e978d02..46f0086e0f6 100644 --- a/homeassistant/components/webostv/notify.py +++ b/homeassistant/components/webostv/notify.py @@ -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")