mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +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
|
||||
updater: 0,
|
||||
sun: 1,
|
||||
device_tracker: 2,
|
||||
alarm_control_panel: 3,
|
||||
timer: 4,
|
||||
sensor: 5,
|
||||
binary_sensor: 6,
|
||||
mailbox: 7,
|
||||
person: 2,
|
||||
device_tracker: 3,
|
||||
alarm_control_panel: 4,
|
||||
timer: 5,
|
||||
sensor: 6,
|
||||
binary_sensor: 7,
|
||||
mailbox: 8,
|
||||
};
|
||||
|
||||
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 DOMAINS_BADGES = [
|
||||
"binary_sensor",
|
||||
"person",
|
||||
"device_tracker",
|
||||
"mailbox",
|
||||
"sensor",
|
||||
|
Loading…
x
Reference in New Issue
Block a user