mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-04 01:58:42 +00:00
use motion-sensor/-off (#11142)
This commit is contained in:
parent
8c1cd273df
commit
6ab497edf8
@ -21,13 +21,14 @@ import {
|
|||||||
mdiLockOpen,
|
mdiLockOpen,
|
||||||
mdiMusicNote,
|
mdiMusicNote,
|
||||||
mdiMusicNoteOff,
|
mdiMusicNoteOff,
|
||||||
|
mdiMotionSensor,
|
||||||
|
mdiMotionSensorOff,
|
||||||
mdiPackage,
|
mdiPackage,
|
||||||
mdiPackageUp,
|
mdiPackageUp,
|
||||||
mdiPlay,
|
mdiPlay,
|
||||||
mdiPowerPlug,
|
mdiPowerPlug,
|
||||||
mdiPowerPlugOff,
|
mdiPowerPlugOff,
|
||||||
mdiRadioboxBlank,
|
mdiRadioboxBlank,
|
||||||
mdiRun,
|
|
||||||
mdiSmoke,
|
mdiSmoke,
|
||||||
mdiSnowflake,
|
mdiSnowflake,
|
||||||
mdiSquare,
|
mdiSquare,
|
||||||
@ -35,7 +36,6 @@ import {
|
|||||||
mdiStop,
|
mdiStop,
|
||||||
mdiThermometer,
|
mdiThermometer,
|
||||||
mdiVibrate,
|
mdiVibrate,
|
||||||
mdiWalk,
|
|
||||||
mdiWater,
|
mdiWater,
|
||||||
mdiWaterOff,
|
mdiWaterOff,
|
||||||
mdiWindowClosed,
|
mdiWindowClosed,
|
||||||
@ -78,7 +78,7 @@ export const binarySensorIcon = (state?: string, stateObj?: HassEntity) => {
|
|||||||
case "moisture":
|
case "moisture":
|
||||||
return is_off ? mdiWaterOff : mdiWater;
|
return is_off ? mdiWaterOff : mdiWater;
|
||||||
case "motion":
|
case "motion":
|
||||||
return is_off ? mdiWalk : mdiRun;
|
return is_off ? mdiMotionSensorOff : mdiMotionSensor;
|
||||||
case "occupancy":
|
case "occupancy":
|
||||||
return is_off ? mdiHomeOutline : mdiHome;
|
return is_off ? mdiHomeOutline : mdiHome;
|
||||||
case "opening":
|
case "opening":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user