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 15:37:55 +02:00 committed by Paulus Schoutsen
parent de55c13355
commit 6f738510fa
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,7 @@ window.hassAttributeUtil.DOMAIN_DEVICE_CLASS = {
sensor: [
'battery',
'humidity',
'illuminance',
'temperature'
],
};

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: