From 7f99f1d9be40c77e8fd628de728a27706c34260e Mon Sep 17 00:00:00 2001 From: Markus Jankowski Date: Fri, 5 Apr 2019 03:40:27 +0200 Subject: [PATCH] add device_class_signal_strength (#3058) --- src/common/entity/sensor_icon.ts | 1 + src/util/hass-attributes-util.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/common/entity/sensor_icon.ts b/src/common/entity/sensor_icon.ts index de741888b7..3a04fa823c 100644 --- a/src/common/entity/sensor_icon.ts +++ b/src/common/entity/sensor_icon.ts @@ -9,6 +9,7 @@ const fixedDeviceClassIcons = { temperature: "hass:thermometer", pressure: "hass:gauge", power: "hass:flash", + signal_strength: "hass:wifi", }; export default function sensorIcon(state: HassEntity) { diff --git a/src/util/hass-attributes-util.js b/src/util/hass-attributes-util.js index 4740fea291..c6eeb30d4c 100644 --- a/src/util/hass-attributes-util.js +++ b/src/util/hass-attributes-util.js @@ -34,6 +34,7 @@ hassAttributeUtil.DOMAIN_DEVICE_CLASS = { "temperature", "pressure", "power", + "signal_strength", ], };