mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 12:26:35 +00:00
Rename sensor_class to device_class (#200)
This commit is contained in:
parent
f3808ff4d4
commit
518d0b38da
@ -323,7 +323,7 @@ window.hassUtil.domainIcon = function (domain, state) {
|
|||||||
|
|
||||||
window.hassUtil.binarySensorIcon = function (state) {
|
window.hassUtil.binarySensorIcon = function (state) {
|
||||||
var activated = state.state && state.state === 'off';
|
var activated = state.state && state.state === 'off';
|
||||||
switch (state.attributes.sensor_class) {
|
switch (state.attributes.device_class) {
|
||||||
case 'connectivity':
|
case 'connectivity':
|
||||||
return activated ? 'mdi:server-network-off' : 'mdi:server-network';
|
return activated ? 'mdi:server-network-off' : 'mdi:server-network';
|
||||||
case 'light':
|
case 'light':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user