Add icons for new sensor device classes (#6193)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
fabiocastagnino 2020-08-24 19:50:47 +02:00 committed by GitHub
parent 5989560f15
commit 06a25284e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,16 @@ import { domainIcon } from "./domain_icon";
import { batteryIcon } from "./battery_icon"; import { batteryIcon } from "./battery_icon";
const fixedDeviceClassIcons = { const fixedDeviceClassIcons = {
current: "hass:current-ac",
energy: "hass:flash",
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", pressure: "hass:gauge",
power: "hass:flash", power: "hass:flash",
power_factor: "hass:angle-acute",
signal_strength: "hass:wifi", signal_strength: "hass:wifi",
voltage: "hass:sine-wave",
}; };
export const sensorIcon = (state: HassEntity) => { export const sensorIcon = (state: HassEntity) => {