From 1e1a3a1c845713508d21d7c1cb87a7ecee6222aa Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 24 Jun 2016 22:33:32 -0700 Subject: [PATCH] Add persistent notification card --- home-assistant-js | 2 +- src/cards/ha-card-chooser.html | 1 + .../ha-persistent_notification-card.html | 47 +++++++++++++++++++ src/components/ha-cards.js | 2 + 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/cards/ha-persistent_notification-card.html diff --git a/home-assistant-js b/home-assistant-js index 526ede8bf0..ef0de1d545 160000 --- a/home-assistant-js +++ b/home-assistant-js @@ -1 +1 @@ -Subproject commit 526ede8bf000ebfd38665c2a069577ead177297b +Subproject commit ef0de1d545665359927ddae503b64878953a9d2e diff --git a/src/cards/ha-card-chooser.html b/src/cards/ha-card-chooser.html index 064693b007..bd9eab1676 100644 --- a/src/cards/ha-card-chooser.html +++ b/src/cards/ha-card-chooser.html @@ -4,3 +4,4 @@ + diff --git a/src/cards/ha-persistent_notification-card.html b/src/cards/ha-persistent_notification-card.html new file mode 100644 index 0000000000..69ff5c3371 --- /dev/null +++ b/src/cards/ha-persistent_notification-card.html @@ -0,0 +1,47 @@ + + + + + + + + + + + diff --git a/src/components/ha-cards.js b/src/components/ha-cards.js index e024ea09da..cbb3176ccf 100644 --- a/src/components/ha-cards.js +++ b/src/components/ha-cards.js @@ -7,10 +7,12 @@ import '../cards/ha-card-chooser'; const DOMAINS_WITH_CARD = { camera: 4, media_player: 3, + persistent_notification: 0, }; const PRIORITY = { configurator: -20, + persistent_notification: -15, group: -10, a: -1, updater: 0,