-
-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chronometer fails if parameter 'when' is given a float #5024
Comments
hmm we actually expect an integer value here so maybe we need to update the docs if you check the log you will see the error message that we catch |
I think rather than updating the docs, casting to an integer would make more sense and be way more convenient for the user. Or is that not as easy as I think? It would make sense because EDIT: I checked the logs but did not see it. But I'm not too worried, I'm only appending the logs in case they are useful to you.
|
sorry a you should be able to cast to int in your template to fix this today, personally i use |
Okay this makes sense, and thank you for the fix, that's what I'm using too. I was just thinking it could make sense to have it accept a float too. If it isn't the easy quick fix as I imagined then we can of course close this issue. And thanks for your fast replies :)) |
Home Assistant Android app version(s):
2025.1.2
Android version(s):
14
Device model(s):
Google Pixel 5
Home Assistant version:
2025.1.4
Last working Home Assistant release (if known):
Description of problem, include YAML if issue is related to notifications:
Chronometer fails if parameter
when:
is given a float. The notification still posts, but without chronometer.Companion App Logs:
Screenshot or video of problem:
Additional information:
Probably irrelevant, but a float ending in .0 like 1738267025.0 seems to pass as an integer and results in a working chronometer timeout.
I hope this issue can help fill a to-do list with many many checked items and make someone feel very productive 🚀😄
The text was updated successfully, but these errors were encountered: