21 Commits

Author SHA1 Message Date
Paul Bottein
616c1fda81
Rename entity filter to entity domain filter (#24587) 2025-03-10 13:34:15 -04:00
Wendelin
0a05dd8f71
Add more tests for common/entity (#24336)
* Use substring instead of deprecated substr

* Add more common entity tests
2025-02-20 20:11:53 +01:00
Wendelin
63a98155cd
Add more unit tests for common/entity (#24182)
* Add new entity tests

* Improve canToggleDomain test
2025-02-14 21:55:23 +01:00
Ville Skyttä
3d1817a6b9
Spelling and grammar fixes (#23598) 2025-01-06 12:10:34 +01:00
Abílio Costa
af1622e306
Show unit for number domains (#23101)
* Show unit for number domains

* Remove duplicated code

* Allow monetary formatting

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>

* Update src/common/entity/compute_state_display.ts

---------

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2024-12-04 11:25:29 +00:00
Wendelin
bd0bfc1fbe
Rspack (#22807)
* Add rspack

* Remove TransformAsyncModulesPlugin from rspack

* Migrate all webpack usage to rspack

* Migrate tests to vitest

* Fix test suites

* Remove chai dependency

* Fix compute_state_display tests

* Fix resolveTimeZone

* Reduces test pipeline

* Revert test ci

* optimize chunk filtering

* Migrate landing-page to rspack

* Update rspack dependencies

* Add rsdoctor

* Fix prod build bundle size

* Use rsdoctor for demo stats

* Remove unused webpack configs

* Update build-scripts/rspack.cjs

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>

* Fix eslint

* Update rspack

* Remove unused code

---------

Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
2024-11-26 14:49:13 +01:00
Abílio Costa
84f7c62ee2
Add support for unit_of_measurement translation (#22868) 2024-11-20 18:44:44 +01:00
karwosts
ce9993fd36
Use finishes_at in timer remaining calculation (#22169)
* Use finishes_at in timer remaining calculation

* lint

* fix test
2024-10-01 14:05:01 +02:00
karwosts
f617426808
Bake numeric device classes into formatEntityState (#19878)
* Bake numeric device classes into formatEntityState

* Apply suggestions from code review

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

---------

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2024-05-24 16:17:23 +02: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
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
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
Paul Bottein
907466d060
Add first weekday option in profile (#13991) 2022-10-10 16:58:27 +02:00
Zack Barett
63c9b3f830
Don't show toggle always on more info (#11640) 2022-02-14 16:21:46 +01:00
Josh McCarty
b188c4ec81
Measurement number format (#10459) 2021-11-01 09:32:22 +01: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