Show person as badges (#2823)

This commit is contained in:
Paulus Schoutsen 2019-02-22 18:30:12 -08:00 committed by Ian Richardson
parent 6da311078a
commit 979025539e
2 changed files with 8 additions and 6 deletions

View File

@ -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);

View File

@ -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",