mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Added sensor device_class 'light' (#1143)
* Added sensor device_class 'light' * Changed icon * Changed device_class name
This commit is contained in:
parent
de55c13355
commit
6f738510fa
@ -31,6 +31,7 @@ window.hassAttributeUtil.DOMAIN_DEVICE_CLASS = {
|
||||
sensor: [
|
||||
'battery',
|
||||
'humidity',
|
||||
'illuminance',
|
||||
'temperature'
|
||||
],
|
||||
};
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user