mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +00:00
Show moisture/flood alerts in the Area card (#12978)
This commit is contained in:
parent
9fa8a96d09
commit
8bd7370a02
@ -6,6 +6,7 @@ import {
|
||||
mdiThermometer,
|
||||
mdiToggleSwitch,
|
||||
mdiToggleSwitchOff,
|
||||
mdiWaterAlert,
|
||||
mdiWaterPercent,
|
||||
} from "@mdi/js";
|
||||
import type { HassEntity, UnsubscribeFunc } from "home-assistant-js-websocket";
|
||||
@ -63,7 +64,7 @@ const OTHER_DOMAINS = ["camera"];
|
||||
|
||||
const DEVICE_CLASSES = {
|
||||
sensor: ["temperature", "humidity"],
|
||||
binary_sensor: ["motion"],
|
||||
binary_sensor: ["motion", "moisture"],
|
||||
};
|
||||
|
||||
const DOMAIN_ICONS = {
|
||||
@ -76,6 +77,7 @@ const DOMAIN_ICONS = {
|
||||
},
|
||||
binary_sensor: {
|
||||
motion: mdiRun,
|
||||
moisture: mdiWaterAlert,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user