From 86dbf99ebea48ec16f66ddac81db438ecacbffde Mon Sep 17 00:00:00 2001 From: Marius <33354141+Mariusthvdb@users.noreply.github.com> Date: Tue, 8 Mar 2022 17:41:32 +0100 Subject: [PATCH 1/2] replace default switch icon to make it stand out against a power entity which uses the same mdiFlash https://github.com/home-assistant/core/issues/67620#issuecomment-1061949527 suggest the Outline version, so create a subtle difference with the on/off icons. --- src/common/entity/domain_icon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/entity/domain_icon.ts b/src/common/entity/domain_icon.ts index b64d93f8a0..a5a594621d 100644 --- a/src/common/entity/domain_icon.ts +++ b/src/common/entity/domain_icon.ts @@ -9,7 +9,6 @@ import { mdiCast, mdiCastConnected, mdiClock, - mdiFlash, mdiGestureTapButton, mdiLanConnect, mdiLanDisconnect, @@ -23,6 +22,7 @@ import { mdiRestart, mdiToggleSwitch, mdiToggleSwitchOff, + mdiToggleSwitchOutline, mdiCheckCircleOutline, mdiCloseCircleOutline, mdiWeatherNight, @@ -108,7 +108,7 @@ export const domainIcon = ( case "switch": return compareState === "on" ? mdiToggleSwitch : mdiToggleSwitchOff; default: - return mdiFlash; + return mdiToggleSwitchOutline; } case "sensor": { From 8301ae262cdbb1402a123d527fc6aeef422ef6a6 Mon Sep 17 00:00:00 2001 From: Marius <33354141+Mariusthvdb@users.noreply.github.com> Date: Tue, 8 Mar 2022 21:40:42 +0100 Subject: [PATCH 2/2] change icon to mimic physical device and follow comments --- src/common/entity/domain_icon.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/entity/domain_icon.ts b/src/common/entity/domain_icon.ts index a5a594621d..40b0106216 100644 --- a/src/common/entity/domain_icon.ts +++ b/src/common/entity/domain_icon.ts @@ -12,6 +12,7 @@ import { mdiGestureTapButton, mdiLanConnect, mdiLanDisconnect, + mdiLightSwitch, mdiLock, mdiLockAlert, mdiLockClock, @@ -22,7 +23,6 @@ import { mdiRestart, mdiToggleSwitch, mdiToggleSwitchOff, - mdiToggleSwitchOutline, mdiCheckCircleOutline, mdiCloseCircleOutline, mdiWeatherNight, @@ -108,7 +108,7 @@ export const domainIcon = ( case "switch": return compareState === "on" ? mdiToggleSwitch : mdiToggleSwitchOff; default: - return mdiToggleSwitchOutline; + return mdiLightSwitch; } case "sensor": {