mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Add default badge to push notification (#2859)
This commit is contained in:
parent
7720a17c18
commit
2237189c86
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@ -157,6 +157,7 @@ class HTML5NotificationService(BaseNotificationService):
|
|||||||
'body': message,
|
'body': message,
|
||||||
'data': {},
|
'data': {},
|
||||||
'icon': '/static/icons/favicon-192x192.png',
|
'icon': '/static/icons/favicon-192x192.png',
|
||||||
|
'badge': '/static/images/notification-badge.png',
|
||||||
'timestamp': (timestamp*1000), # Javascript ms since epoch
|
'timestamp': (timestamp*1000), # Javascript ms since epoch
|
||||||
'title': kwargs.get(ATTR_TITLE)
|
'title': kwargs.get(ATTR_TITLE)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user