mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Add pressure sensor device class (#1713)
This commit is contained in:
parent
305fa84d38
commit
f0619c7d13
@ -6,6 +6,7 @@ const fixedDeviceClassIcons = {
|
|||||||
humidity: 'hass:water-percent',
|
humidity: 'hass:water-percent',
|
||||||
illuminance: 'hass:brightness-5',
|
illuminance: 'hass:brightness-5',
|
||||||
temperature: 'hass:thermometer',
|
temperature: 'hass:thermometer',
|
||||||
|
pressure: 'hass:gauge'
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function sensorIcon(state) {
|
export default function sensorIcon(state) {
|
||||||
|
@ -31,7 +31,8 @@ hassAttributeUtil.DOMAIN_DEVICE_CLASS = {
|
|||||||
'battery',
|
'battery',
|
||||||
'humidity',
|
'humidity',
|
||||||
'illuminance',
|
'illuminance',
|
||||||
'temperature'
|
'temperature',
|
||||||
|
'pressure'
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user