mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
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'.
This commit is contained in:
parent
4824268203
commit
6157df779a
@ -11,14 +11,14 @@ function binarySensorIcon(state) {
|
|||||||
return activated ? 'mdi:crop-square' : 'mdi:exit-to-app';
|
return activated ? 'mdi:crop-square' : 'mdi:exit-to-app';
|
||||||
case 'moisture':
|
case 'moisture':
|
||||||
return activated ? 'mdi:water-off' : 'mdi:water';
|
return activated ? 'mdi:water-off' : 'mdi:water';
|
||||||
case 'safety':
|
|
||||||
case 'gas':
|
|
||||||
case 'light':
|
case 'light':
|
||||||
return activated ? 'mdi:brightness-5' : 'mdi:brightness-7';
|
return activated ? 'mdi:brightness-5' : 'mdi:brightness-7';
|
||||||
case 'sound':
|
case 'sound':
|
||||||
return activated ? 'mdi:music-note-off' : 'mdi:music-note';
|
return activated ? 'mdi:music-note-off' : 'mdi:music-note';
|
||||||
case 'vibration':
|
case 'vibration':
|
||||||
return activated ? 'mdi:crop-portrait' : 'mdi:vibrate';
|
return activated ? 'mdi:crop-portrait' : 'mdi:vibrate';
|
||||||
|
case 'safety':
|
||||||
|
case 'gas':
|
||||||
case 'smoke':
|
case 'smoke':
|
||||||
case 'power':
|
case 'power':
|
||||||
return activated ? 'mdi:verified' : 'mdi:alert';
|
return activated ? 'mdi:verified' : 'mdi:alert';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user