From 82af9f71fe79042a7c5d88e8263826ba96316bc4 Mon Sep 17 00:00:00 2001 From: Adam Mills Date: Fri, 10 Feb 2017 17:59:36 -0500 Subject: [PATCH] Rename sensor_class to device_class --- src/util/hass-util.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/hass-util.html b/src/util/hass-util.html index 02ab9cc1be49..5216fccf1781 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -323,7 +323,7 @@ window.hassUtil.binarySensorIcon = function (state) { var activated = state.state && state.state === 'off'; - switch (state.attributes.sensor_class) { + switch (state.attributes.device_class) { case 'connectivity': return activated ? 'mdi:server-network-off' : 'mdi:server-network'; case 'light':