Commit Graph

25 Commits

Author SHA1 Message Date
Caius-Bonus c48b620e03
Fix inconsistencies in `slugify` between frontend and core implementation (#18297) 2023-10-23 08:37:56 +00:00
Paul Bottein 6c7efc17c2
Fix more info type test (#17758) 2023-08-31 22:37:25 +02:00
Bram Kragten 780de42e4b
Allow to show times in the UI in the timezone of the server (#16799) 2023-06-13 12:12:13 +02:00
Christoph Wen, B.Sc 2ad6253b72
Add setting to localize numeric dates independent from language (#15770) (#16489) 2023-05-30 19:39:27 +00:00
Steve Repsher aa3fd70966
Use Babel runtime for helpers and regenerator (33%+ bundle reduction) (#16466) 2023-05-08 14:47:53 +02:00
Raman Gupta a19ff5aef5
Add milliseconds support for duration sensors (#15895) 2023-03-26 23:52:18 +02:00
Jesse Moody 24f1677809
Fix can not typo (#15830) 2023-03-16 16:18:31 +01:00
Franck Nijhof 0158d7e3e5
Adjust backend translations for entity components (#15820)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-03-16 13:51:38 +01:00
Paul Bottein afe1b7ef59
Use display precision for number format none (#15674)
* Use display precision for number format none

* Update src/common/number/format_number.ts

Co-authored-by: Bram Kragten <mail@bramkragten.nl>

* prettier

* Fix 0 value

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-03-02 10:19:27 +00:00
Erik Montnemery 050ed145bf
Allow overriding a sensor's display precision (#15363)
* Allow overriding a sensor's display precision

* Update demo + gallery

* Lint

* Fix state not updated in the UI

* Use formatNumber for options

* Feedbacks

* Add default precision and minimumFractionDigits

* Remove useless undefined

---------

Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
2023-02-08 18:20:58 +01:00
Adam Kapos 5e4b673751
Fix relative time above 22 hours (#15072)
fixes https://github.com/home-assistant/frontend/issues/14815
fixes undefined
2023-01-24 12:53:57 +00:00
Paul Bottein d15d339782
Entity state colors theming (#14831)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2023-01-23 09:28:38 +01:00
Paul Bottein dfc461ce05
Add support for entity translation key (#14482) 2022-12-01 12:53:44 +01:00
Paul Bottein 40d0455936
Fix common tests (#14485) 2022-11-30 19:50:53 +01:00
Josh McCarty 66ed1b18be
Format numeric entities with integer value and step as integer instead of float (#14112) 2022-10-26 13:27:14 +02:00
Paul Bottein 907466d060
Add first weekday option in profile (#13991) 2022-10-10 16:58:27 +02:00
Michael Varrieur 0c800344d2
Add custom selectUnit, use in relativeTime function (#14008) 2022-10-10 14:26:02 +00:00
Zack Barett ce77ddf365
Revert #10991 (#12618) 2022-05-07 02:48:57 +00:00
Johann Vanackere 8da73d49d7
Terms based entities search (#10991) 2022-04-26 19:39:58 -05:00
J. Nick Koston 145e5d7bc6
Format sensors with state class duration (#12426) 2022-04-26 02:07:11 +00:00
Zack Barett 63c9b3f830
Don't show toggle always on more info (#11640) 2022-02-14 16:21:46 +01:00
Michael Gorven 1010777139
Add weekday to formatTimeWeekday() (#11020) 2022-01-24 19:25:45 +01:00
Josh McCarty b188c4ec81
Measurement number format (#10459) 2021-11-01 09:32:22 +01:00
Philip Allgaier 0c038398aa
Fix various `slugify()` issues + add tests (#10383) 2021-10-25 16:26:38 +02:00
Bram Kragten 1bccbd4173
Use browser default time and number formatting with polyfills if needed (#9481)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-29 23:34:52 +00:00