diff --git a/src/common/entity/sensor_icon.js b/src/common/entity/sensor_icon.js index 3844a3201d..9a12bf3403 100644 --- a/src/common/entity/sensor_icon.js +++ b/src/common/entity/sensor_icon.js @@ -6,6 +6,7 @@ const fixedDeviceClassIcons = { humidity: 'hass:water-percent', illuminance: 'hass:brightness-5', temperature: 'hass:thermometer', + pressure: 'hass:gauge' }; export default function sensorIcon(state) { diff --git a/src/util/hass-attributes-util.js b/src/util/hass-attributes-util.js index 7384e5e456..466e7987c3 100644 --- a/src/util/hass-attributes-util.js +++ b/src/util/hass-attributes-util.js @@ -31,7 +31,8 @@ hassAttributeUtil.DOMAIN_DEVICE_CLASS = { 'battery', 'humidity', 'illuminance', - 'temperature' + 'temperature', + 'pressure' ], };