Compare commits

...
2 changed files with 16 additions and 8 deletions
@@ -611,15 +611,12 @@ export class HuiMapOverview extends LitElement {
entry: ActivityEntry,
last: boolean
) {
const subject = entry.personId ? this._states[entry.personId] : stateObj;
const place = subject
? this._formatters.formatEntityState(subject, entry.state)
: entry.state;
const person = entry.personId ? this._states[entry.personId] : undefined;
const headline = entry.personId
? subject
? this._personName(subject)
? person
? this._personName(person)
: entry.personId
: place;
: this._formatters.formatEntityState(stateObj, entry.state);
const color =
entry.personId && !entry.arrived
? undefined
@@ -633,7 +630,16 @@ export class HuiMapOverview extends LitElement {
></span>
<span class="entry-headline">${headline}</span>
<span class="entry-when">
${entry.personId ? html`${place} · ` : nothing}
${
entry.personId
? html`${this._i18n.localize(
entry.arrived
? "ui.panel.lovelace.cards.map.overview.entered"
: "ui.panel.lovelace.cards.map.overview.left"
)}
· `
: nothing
}
${formatTime(entry.when, this._i18n.locale, this._config)} ·
<ha-relative-time .datetime=${entry.when}></ha-relative-time>
</span>
+2
View File
@@ -9543,6 +9543,8 @@
"show_more": "Show more",
"no_activity": "No recent activity",
"activity_unavailable": "Activity couldn't be loaded",
"entered": "Entered",
"left": "Left",
"people_in_zone": "{count, plural, =0 {No one here} one {{count} person} other {{count} people}}"
}
},