mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Missing parenthesis breaks map tooltip format (#15326)
This commit is contained in:
parent
5548436678
commit
84902bd01f
@ -341,7 +341,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
||||
const p = {} as HaMapPathPoint;
|
||||
p.point = [latitude, longitude] as LatLngTuple;
|
||||
const t = new Date(entityState.lu * 1000);
|
||||
if (config.hours_to_show! ?? DEFAULT_HOURS_TO_SHOW > 144) {
|
||||
if ((config.hours_to_show! ?? DEFAULT_HOURS_TO_SHOW) > 144) {
|
||||
// if showing > 6 days in the history trail, show the full
|
||||
// date and time
|
||||
p.tooltip = formatDateTime(t, this.hass.locale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user