use motion-sensor/-off (#11142)

This commit is contained in:
Marius 2022-01-12 15:52:43 +01:00 committed by GitHub
parent 8c1cd273df
commit 6ab497edf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,13 +21,14 @@ import {
mdiLockOpen,
mdiMusicNote,
mdiMusicNoteOff,
mdiMotionSensor,
mdiMotionSensorOff,
mdiPackage,
mdiPackageUp,
mdiPlay,
mdiPowerPlug,
mdiPowerPlugOff,
mdiRadioboxBlank,
mdiRun,
mdiSmoke,
mdiSnowflake,
mdiSquare,
@ -35,7 +36,6 @@ import {
mdiStop,
mdiThermometer,
mdiVibrate,
mdiWalk,
mdiWater,
mdiWaterOff,
mdiWindowClosed,
@ -78,7 +78,7 @@ export const binarySensorIcon = (state?: string, stateObj?: HassEntity) => {
case "moisture":
return is_off ? mdiWaterOff : mdiWater;
case "motion":
return is_off ? mdiWalk : mdiRun;
return is_off ? mdiMotionSensorOff : mdiMotionSensor;
case "occupancy":
return is_off ? mdiHomeOutline : mdiHome;
case "opening":