Closed basbruss closed 1 year ago
I'm using the default component of HA for relative time so that it updates automatically over time, aka <ha-relative-time></ha-relative-time>
, I don't control how it's displayed. I don't think there's much I can do about that unfortunately
Ah, I found there's a @property({ type: Boolean }) public capitalize = false;
in the HA object, let me try. If it works, I'll add a parameter to the relativeTime
function
:tada: This issue has been resolved in version 4.0.0-dev.18 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This fixes it: return helpers.relativeTime(states['sensor.sun_next_dawn'].state, true)
:tada: This issue has been resolved in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Checklist
Describe the bug The string is not capitalized at the start like it does with other helpers like for example
helpers.localize()
Version of the card Version: v4.0.0-dev17
To Reproduce This is the configuration I used:
Screenshots
Expected behavior Capitalized string like is done in this card with pure JS
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.