From 6157df779ae8ae1abf8f6f10e22c0bbbeda2b766 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Wed, 2 Mar 2016 14:15:06 -0800 Subject: [PATCH] Fix the safety-related sensor class icons Commit 3ad5b9acb2c4b9388af8861b4efdbba3302b7908 added some new icons in the middle of the safety-related ones so that some things like 'safety' and 'gas' now resolve to a brightness icon. This moves them down in the list to match up with the original peers 'smoke' and 'power'. --- src/util/state-icon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/state-icon.js b/src/util/state-icon.js index fceebd6fe9..61961c19ed 100644 --- a/src/util/state-icon.js +++ b/src/util/state-icon.js @@ -11,14 +11,14 @@ function binarySensorIcon(state) { return activated ? 'mdi:crop-square' : 'mdi:exit-to-app'; case 'moisture': return activated ? 'mdi:water-off' : 'mdi:water'; - case 'safety': - case 'gas': case 'light': return activated ? 'mdi:brightness-5' : 'mdi:brightness-7'; case 'sound': return activated ? 'mdi:music-note-off' : 'mdi:music-note'; case 'vibration': return activated ? 'mdi:crop-portrait' : 'mdi:vibrate'; + case 'safety': + case 'gas': case 'smoke': case 'power': return activated ? 'mdi:verified' : 'mdi:alert';