From 003d55968e97b84c3756ed62362decc51a3740cf Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Thu, 24 Sep 2020 19:37:50 +0200 Subject: [PATCH] Added icon for power on/off (#7124) --- src/common/entity/binary_sensor_icon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/entity/binary_sensor_icon.ts b/src/common/entity/binary_sensor_icon.ts index 5442e432ff..b2ee9567cd 100644 --- a/src/common/entity/binary_sensor_icon.ts +++ b/src/common/entity/binary_sensor_icon.ts @@ -17,8 +17,9 @@ export const binarySensorIcon = (state: HassEntity) => { return is_off ? "hass:door-closed" : "hass:door-open"; case "garage_door": return is_off ? "hass:garage" : "hass:garage-open"; - case "gas": case "power": + return is_off ? "hass:power-off" : "hass:power-on"; + case "gas": case "problem": case "safety": case "smoke":