mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Use dead and sleep zwave icons (#257)
* Use dead and sleep zwave icons * Use mdi:nfc as default zwave icon
This commit is contained in:
parent
84c297ae71
commit
b66399c1f7
@ -312,6 +312,13 @@ window.hassUtil.domainIcon = function (domain, state) {
|
||||
case 'weblink':
|
||||
return 'mdi:open-in-new';
|
||||
|
||||
case 'zwave':
|
||||
if (state) {
|
||||
if (state.indexOf('Dead') !== -1) return 'mdi:emoticon-dead';
|
||||
if (state.indexOf('Sleeping') !== -1) return 'mdi:sleep';
|
||||
}
|
||||
return 'mdi:nfc';
|
||||
|
||||
default:
|
||||
/* eslint-disable no-console */
|
||||
console.warn(
|
||||
|
Loading…
x
Reference in New Issue
Block a user