mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Show person as badges (#2823)
This commit is contained in:
parent
6da311078a
commit
979025539e
@ -36,12 +36,13 @@ const PRIORITY = {
|
|||||||
// badges have priority >= 0
|
// badges have priority >= 0
|
||||||
updater: 0,
|
updater: 0,
|
||||||
sun: 1,
|
sun: 1,
|
||||||
device_tracker: 2,
|
person: 2,
|
||||||
alarm_control_panel: 3,
|
device_tracker: 3,
|
||||||
timer: 4,
|
alarm_control_panel: 4,
|
||||||
sensor: 5,
|
timer: 5,
|
||||||
binary_sensor: 6,
|
sensor: 6,
|
||||||
mailbox: 7,
|
binary_sensor: 7,
|
||||||
|
mailbox: 8,
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPriority = (domain) => (domain in PRIORITY ? PRIORITY[domain] : 100);
|
const getPriority = (domain) => (domain in PRIORITY ? PRIORITY[domain] : 100);
|
||||||
|
@ -19,6 +19,7 @@ import { LocalizeFunc } from "../../../common/translations/localize";
|
|||||||
const DEFAULT_VIEW_ENTITY_ID = "group.default_view";
|
const DEFAULT_VIEW_ENTITY_ID = "group.default_view";
|
||||||
const DOMAINS_BADGES = [
|
const DOMAINS_BADGES = [
|
||||||
"binary_sensor",
|
"binary_sensor",
|
||||||
|
"person",
|
||||||
"device_tracker",
|
"device_tracker",
|
||||||
"mailbox",
|
"mailbox",
|
||||||
"sensor",
|
"sensor",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user