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

View File

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