mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Capitalise ha-relative-time in state-display (#21949)
This matches the capitalisation applied to hui-timestamp-display, and state-info displays
This commit is contained in:
parent
7115d14699
commit
ba5f176d52
@ -99,6 +99,7 @@ class StateDisplay extends LitElement {
|
|||||||
<ha-relative-time
|
<ha-relative-time
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.datetime=${stateObj.last_changed}
|
.datetime=${stateObj.last_changed}
|
||||||
|
capitalize
|
||||||
></ha-relative-time>
|
></ha-relative-time>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -108,6 +109,7 @@ class StateDisplay extends LitElement {
|
|||||||
<ha-relative-time
|
<ha-relative-time
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.datetime=${stateObj.last_updated}
|
.datetime=${stateObj.last_updated}
|
||||||
|
capitalize
|
||||||
></ha-relative-time>
|
></ha-relative-time>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -116,6 +118,7 @@ class StateDisplay extends LitElement {
|
|||||||
<ha-relative-time
|
<ha-relative-time
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.datetime=${stateObj.attributes.last_triggered}
|
.datetime=${stateObj.attributes.last_triggered}
|
||||||
|
capitalize
|
||||||
></ha-relative-time>
|
></ha-relative-time>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user