mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
parent
c8ca66b671
commit
87d9cdd78f
@ -344,12 +344,15 @@ class HTML5NotificationService(BaseNotificationService):
|
|||||||
# Pick out fields that should go into the notification directly vs
|
# Pick out fields that should go into the notification directly vs
|
||||||
# into the notification data dictionary.
|
# into the notification data dictionary.
|
||||||
|
|
||||||
for key, val in data.copy().items():
|
data_tmp = {}
|
||||||
|
|
||||||
|
for key, val in data.items():
|
||||||
if key in HTML5_SHOWNOTIFICATION_PARAMETERS:
|
if key in HTML5_SHOWNOTIFICATION_PARAMETERS:
|
||||||
payload[key] = val
|
payload[key] = val
|
||||||
del data[key]
|
else:
|
||||||
|
data_tmp[key] = val
|
||||||
|
|
||||||
payload[ATTR_DATA] = data
|
payload[ATTR_DATA] = data_tmp
|
||||||
|
|
||||||
if (payload[ATTR_DATA].get(ATTR_URL) is None and
|
if (payload[ATTR_DATA].get(ATTR_URL) is None and
|
||||||
payload.get(ATTR_ACTIONS) is None):
|
payload.get(ATTR_ACTIONS) is None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user