From 2237189c864b7c5523ccff573827654801b4267d Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 16 Aug 2016 23:05:00 -0700 Subject: [PATCH] Add default badge to push notification (#2859) --- .../images/{badge.png => notification-badge.png} | Bin homeassistant/components/notify/html5.py | 1 + 2 files changed, 1 insertion(+) rename homeassistant/components/frontend/www_static/images/{badge.png => notification-badge.png} (100%) diff --git a/homeassistant/components/frontend/www_static/images/badge.png b/homeassistant/components/frontend/www_static/images/notification-badge.png similarity index 100% rename from homeassistant/components/frontend/www_static/images/badge.png rename to homeassistant/components/frontend/www_static/images/notification-badge.png diff --git a/homeassistant/components/notify/html5.py b/homeassistant/components/notify/html5.py index 7d9b89471b4..33ebe8e0c0d 100644 --- a/homeassistant/components/notify/html5.py +++ b/homeassistant/components/notify/html5.py @@ -157,6 +157,7 @@ class HTML5NotificationService(BaseNotificationService): 'body': message, 'data': {}, 'icon': '/static/icons/favicon-192x192.png', + 'badge': '/static/images/notification-badge.png', 'timestamp': (timestamp*1000), # Javascript ms since epoch 'title': kwargs.get(ATTR_TITLE) }