From 06a25284e8ea03ffb0eb37e14ac4c5ca41728640 Mon Sep 17 00:00:00 2001 From: fabiocastagnino Date: Mon, 24 Aug 2020 19:50:47 +0200 Subject: [PATCH] Add icons for new sensor device classes (#6193) Co-authored-by: Bram Kragten --- src/common/entity/sensor_icon.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/entity/sensor_icon.ts b/src/common/entity/sensor_icon.ts index 1ec97ff5d9..7c8d264027 100644 --- a/src/common/entity/sensor_icon.ts +++ b/src/common/entity/sensor_icon.ts @@ -5,12 +5,16 @@ import { domainIcon } from "./domain_icon"; import { batteryIcon } from "./battery_icon"; const fixedDeviceClassIcons = { + current: "hass:current-ac", + energy: "hass:flash", humidity: "hass:water-percent", illuminance: "hass:brightness-5", temperature: "hass:thermometer", pressure: "hass:gauge", power: "hass:flash", + power_factor: "hass:angle-acute", signal_strength: "hass:wifi", + voltage: "hass:sine-wave", }; export const sensorIcon = (state: HassEntity) => {