mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 23:36:36 +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':
|
case 'weblink':
|
||||||
return 'mdi:open-in-new';
|
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:
|
default:
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
console.warn(
|
console.warn(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user