mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +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: [
|
sensor: [
|
||||||
'battery',
|
'battery',
|
||||||
'humidity',
|
'humidity',
|
||||||
|
'illuminance',
|
||||||
'temperature'
|
'temperature'
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -298,6 +298,8 @@ window.hassUtil.sensorIcon = (state) => {
|
|||||||
}
|
}
|
||||||
case 'humidity':
|
case 'humidity':
|
||||||
return 'mdi:water-percent';
|
return 'mdi:water-percent';
|
||||||
|
case 'illuminance':
|
||||||
|
return 'mdi:brightness-5';
|
||||||
case 'temperature':
|
case 'temperature':
|
||||||
return 'mdi:thermometer';
|
return 'mdi:thermometer';
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user