Added sensor device_class 'light' (#1143)

* Added sensor device_class 'light'

* Changed icon

* Changed device_class name
This commit is contained in:
cdce8p
2018-05-05 09:37:55 -04:00
committed by Paulus Schoutsen
parent de55c13355
commit 6f738510fa
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@ window.hassAttributeUtil.DOMAIN_DEVICE_CLASS = {
sensor: [
'battery',
'humidity',
'illuminance',
'temperature'
],
};
+2
View File
@@ -298,6 +298,8 @@ window.hassUtil.sensorIcon = (state) => {
}
case 'humidity':
return 'mdi:water-percent';
case 'illuminance':
return 'mdi:brightness-5';
case 'temperature':
return 'mdi:thermometer';
default: