Wouter Born
0e03943e48
Use String.join instead of Collectors.joining ( #3973 )
...
* Use String.join instead of Collectors.joining
String.join results in less code when joining an Iterable or Array.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-28 13:11:14 +01:00
Andrew Fiddian-Green
a93f3d7d90
Add-on suggestion finder for USB devices ( #3922 )
...
Also-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2023-12-27 18:27:40 +01:00
Wouter Born
b08a01c93f
Remove unnecessary parenthesis from lambdas ( #3968 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-27 17:52:13 +01:00
Wouter Born
ec05a63738
Remove unnecessary boxing ( #3969 )
...
Using primitives makes the code faster and consume less memory.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-27 17:50:09 +01:00
J-N-K
ad1c37d382
Fix month, week, day not supported ( #3964 )
...
Due to the way month, week and day are defined in Indriya their symbol is not added as alias. This is a bug in indriya, but their release cycles are quite long and we should provide a fix for our users.
This should be backported to 4.1.x
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-12-26 22:43:33 +01:00
Wouter Born
11e51abb44
Use OnOffType.from
to reduce code ( #3954 )
...
You can create an `OnOffType` using a boolean nowadays which reduces the amount of code.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-23 15:33:07 +01:00
Holger Friedrich
bada23fdb8
Minor code cleanup ( #3942 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-23 12:54:29 +01:00
Holger Friedrich
839ba1ab4c
Apply spotless after release, resolve bundles ( #3953 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:14:28 +01:00
openhab-bot
3b279587b1
[unleash-maven-plugin] Preparation for next development cycle.
2023-12-22 11:48:43 +00:00
openhab-bot
be456792d3
New Crowdin updates ( #3950 )
...
* New translations i18n.properties (Romanian)
* New translations network.properties (Romanian)
* New translations i18n.properties (French)
* New translations network.properties (French)
* New translations i18n.properties (Spanish)
* New translations network.properties (Spanish)
* New translations i18n.properties (Czech)
* New translations network.properties (Czech)
* New translations addons.properties (Danish)
* New translations i18n.properties (Danish)
* New translations network.properties (Danish)
* New translations marketplace.properties (Danish)
* New translations units.properties (Danish)
* New translations i18n.properties (German)
* New translations network.properties (German)
* New translations i18n.properties (Greek)
* New translations network.properties (Greek)
* New translations i18n.properties (Finnish)
* New translations network.properties (Finnish)
* New translations i18n.properties (Hebrew)
* New translations network.properties (Hebrew)
* New translations i18n.properties (Hungarian)
* New translations network.properties (Hungarian)
* New translations units.properties (Hungarian)
* New translations i18n.properties (Italian)
* New translations network.properties (Italian)
* New translations units.properties (Italian)
* New translations i18n.properties (Dutch)
* New translations network.properties (Dutch)
* New translations i18n.properties (Norwegian)
* New translations network.properties (Norwegian)
* New translations i18n.properties (Polish)
* New translations network.properties (Polish)
* New translations i18n.properties (Russian)
* New translations network.properties (Russian)
* New translations i18n.properties (Slovenian)
* New translations network.properties (Slovenian)
* New translations i18n.properties (Swedish)
* New translations network.properties (Swedish)
* New translations i18n.properties (Ukrainian)
* New translations network.properties (Ukrainian)
* New translations i18n.properties (Chinese Simplified)
* New translations network.properties (Chinese Simplified)
* New translations i18n.properties (Portuguese, Brazilian)
* New translations network.properties (Portuguese, Brazilian)
2023-12-21 21:51:49 +01:00
Kai Kreuzer
369bd228e7
Move addons.xml to runtime folder ( #3944 )
...
* Move addons.xml to runtime folder
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-12-20 23:53:10 +01:00
Jacob Laursen
e8641efd5b
Provide I18N properties for Unit Settings ( #3941 )
2023-12-20 12:34:58 +01:00
Wouter Born
81f14c9df1
Upgrade logback-classic to 1.3.14 ( #3935 )
2023-12-19 23:26:22 +01:00
openhab-bot
cb1b355869
New Crowdin updates ( #3929 )
...
* New translations addons.properties (Hungarian)
* New translations addons.properties (Italian)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations addons.properties (Hebrew)
2023-12-19 21:05:30 +01:00
Holger Friedrich
24b1784d44
Reduce SAT warnings ( #3932 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-19 20:37:57 +01:00
Holger Friedrich
8bed621c8c
Service to suggest addons via generic IP scan ( #3920 )
...
* Service to suggest addons via generic IP scan
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-17 13:12:55 +01:00
openhab-bot
2c9312e55c
New Crowdin updates ( #3919 )
...
* New translations addons.properties (Danish)
* New translations addons.properties (Italian)
* New translations addons.properties (French)
2023-12-16 17:23:47 +01:00
J-N-K
c8a6cf2603
[UoM] Add currency handling ( #3503 )
...
* Add currency as unit
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-12-16 11:18:25 +01:00
Mark Herwege
5ffeb1fc72
i8n suggestion finders config ( #3913 )
...
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-11 21:58:18 +01:00
Andrew Fiddian-Green
62a50a409a
Service to find suggested addons to install ( #3806 )
...
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Co-authored-by: Mark Herwege <mark.herwege@telenet.be>
2023-12-07 17:32:33 +01:00
Jared
44b92dbc59
add support for passing extra fields to oauth token request ( #3881 )
...
allows using oauth client for authentication with velux API https://github.com/nougad/velux-cli/blob/master/velux-protocol.md#initial-login
Signed-off-by: Jared Lyon <lyonj3@gmail.com>
2023-12-06 07:32:47 +01:00
Holger Friedrich
9a9726b8fe
[ColorUtil] Extend rgbToHsb(PercentType[]) for RGBW ( #3882 )
...
* [ColorUtil] Extend rgbToHsb(PercentType[]) for RGBW
rgbToHsb(PercentType) supports arrays of size 4 (RGBW) in addition to and arrays of size 3 (RGB).
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-03 20:14:35 +01:00
joerg1985
32237a9bdc
Do not leak running pools from the internal collection ( #3885 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2023-11-24 22:24:37 +01:00
joerg1985
ae117f6317
Use a single thread to watch all event executors ( #3884 )
...
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2023-11-24 16:52:07 +01:00
Wouter Born
7af02598ef
Small code cleanup ( #3873 )
...
* Removes hyphens from JavaDoc parameters
* Fixes a few 'exists' grammar mistakes
Signed-off-by: Wouter Born <github@maindrain.net>
2023-11-15 16:47:58 +01:00
Holger Friedrich
47cc6db982
Fix javadoc warnings in directory org.openhab.core ( #3867 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-11-12 11:38:36 +01:00
Marco Müller
237f2ebb56
[core] Add conversion for HSB to RGBW and back ( #3849 )
...
* Add conversion for HSB to RGBW and back
for KNX DPT251.600 to use all 4 colors.
With the new feature, the HSBType can converted into RGBW, and also back
to HSB.
Due to the conversion, some accuracy is lost, but the result is
approximately correct.
Signed-off-by: Marco Müller <marco@ms-mueller.ch>
2023-11-12 11:23:44 +01:00
J-N-K
cdbca4dd0a
Allow sending TimeSeries for items ( #3597 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-11-07 20:08:41 -08:00
Kai Kreuzer
14f8490d1c
Address warnings in StringUtils class ( #3845 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-10-15 22:01:07 +02:00
lsiepel
4001161810
Add string utils to core ( #3738 )
...
* Add utils to core
Signed-off-by: lsiepel <leosiepel@gmail.com>
2023-10-15 20:35:15 +02:00
J-N-K
ae85096e53
Improve code in QuantityType ( #3842 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-10-10 21:49:41 +02:00
jimtng
e9d969c31d
Fix QuantityType UNIT_PATTERN regex ( #3841 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-10-10 10:08:45 +02:00
Wouter Born
e8e1c9fe73
Simplify code that creates List, Map and Set objects ( #3836 )
...
Simplifies the code by using List.of, List.copyOf etc. where possible which results in less code and imports.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-09 18:00:00 +02:00
jimtng
304453ec58
Make DecimalType, QuantityType, PercentType accept lowercased exponent notation ( #3834 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-10-09 10:59:25 +02:00
Wouter Born
09b3160a55
Simplify code using Stream.toList ( #3831 )
...
Stream.toList was introduced in Java 16 and creates an unmodifiable List so it can be used to simplify code whenever the List is not expected to be modified.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-10-09 09:20:08 +02:00
jimtng
0d355fbbc7
Make QuantityType.toUnitRelative accept a String ( #3802 )
...
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-10-06 20:42:50 +02:00
openhab-bot
dda021ae07
New Crowdin updates ( #3807 )
...
* New translations addons.properties (Russian)
* New translations automation.properties (Hebrew)
* New translations languagesupport.properties (Portuguese)
* New translations languagesupport.properties (Portuguese, Brazilian)
* New translations scriptprofile.properties (Finnish)
* New translations voice.properties (Finnish)
* New translations voice.properties (Hebrew)
2023-10-02 10:30:39 +02:00
Mark Herwege
2b8475253f
Adjust QuantityType calculations for temperatures ( #3792 )
...
* fix quantity calculations
* remove temperature offsetProfile workaround
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
2023-09-08 18:02:34 +02:00
Wouter Born
c39d15ade6
Cleanup code ( #3787 )
...
This code cleanup fixes various warnings in Eclipse.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-30 22:50:17 +02:00
Gwendal Roulleau
3ddbdb25ed
[cache] Fix concurrent use of a cache entry ( #3785 )
...
Closes #3507
Fix some rare case where the concurrent readings of a cache entry can fail.
Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2023-08-30 14:23:35 +02:00
Wouter Born
f8b52ea3f6
Use JUnit TempDir which automatically removes temp dirs ( #3786 )
2023-08-28 22:30:56 +02:00
Wouter Born
5daf4ff076
Fix SAT and null analysis issues ( #3781 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-27 11:15:15 +02:00
J-N-K
04eb32185c
Bump UoM libraries to 2.2 ( #3758 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-08-18 21:38:43 +02:00
Wouter Born
aef57edd73
Use workaround to fix high CPU usage by LinkedTransferQueue ( #3756 )
...
This is a workaround for JDK-8301341 by using the Java 11 LinkedTransferQueue with the QueueingThreadPoolExecutor in the Core and jUPnP.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-14 10:37:20 +02:00
J-N-K
3af2e30098
Fix logging in AbstractProvider implementations ( #3751 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-08-13 18:20:02 +02:00
Wouter Born
04105c1b1a
Link to Java 17 documentation ( #3750 )
...
This prevents issues because older documentation may not apply to Java 17.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-12 10:19:48 +02:00
Florian Hotze
e1741cf61d
[rest] Add caching for TagResource & De-duplicate code for caching ( #3729 )
...
* [rest] Add caching for TagResource
* [core] Add & use RegistryChangedRunnableListener class
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-07-25 20:59:39 +02:00
Kai Kreuzer
5692232e2b
Apply spotless
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:11:37 +02:00
openhab-bot
fd93f0a766
[unleash-maven-plugin] Preparation for next development cycle.
2023-07-23 17:14:35 +00:00
J-N-K
9ba8e71c54
Add unit "calorie" ( #3684 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-07-15 22:18:27 +02:00