Commit Graph

1724 Commits (f0b53cea34897677a2777f0d5526da7dc22d4668)

Author SHA1 Message Date
Wouter Born f0b53cea34
Fix i18n-maven-plugin project name ()
This makes it follow the naming scheme as used with the other projects.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-29 17:05:58 +02:00
openhab-bot f5aeba0ad7
New Crowdin updates ()
* New translations DefaultSystemChannels.properties (Finnish)

* New translations DefaultSystemChannels.properties (Dutch)

* New translations marketplace.properties (Polish)

* New translations SystemThingStatusInfos.properties (Polish)

* New translations validation.properties (Polish)

* New translations voice.properties (Polish)

* New translations DefaultSystemChannels.properties (Italian)

* New translations DefaultSystemChannels.properties (Polish)

* New translations DefaultSystemChannels.properties (Hebrew)

* New translations DefaultSystemChannels.properties (German)

* New translations marketplace.properties (French)

* New translations DefaultSystemChannels.properties (French)

* New translations addons.properties (French)

* New translations marketplace.properties (French)
2022-03-27 23:22:39 +02:00
J-N-K 5629a38e1a
Fix null annotations on PersistenceItemConfiguration ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-27 14:47:41 +02:00
Wouter Born f20799b69b
Improve HostFragmentSupportTest ()
* Remove duplications
* Better null handling
* Use constants
* Use default waitForAssert timeout (10s)

This may help to get the test more stable ().

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-27 10:46:36 +02:00
Gaël L'hopital 847aa349d8
Adding Indoor Temperature as system channel type ()
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2022-03-26 12:29:03 +01:00
openhab-bot 22c39fb54d
New Crowdin updates ()
* New translations addons.properties (Dutch)
* New translations addons.properties (Finnish)
* New translations addons.properties (German)
* New translations addons.properties (Hebrew)
* New translations addons.properties (Italian)
* New translations addons.properties (Polish)
* New translations marketplace.properties (Dutch)
* New translations marketplace.properties (Finnish)
* New translations marketplace.properties (German)
* New translations marketplace.properties (Hebrew)
* New translations marketplace.properties (Italian)
* New translations SystemThingStatusInfos.properties (Bulgarian)
* New translations units.properties (Catalan)
2022-03-25 18:44:31 +01:00
Christoph Weitkamp 3c494677b7
Improve description of REST API for deleting data from persistence ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-03-25 18:43:01 +01:00
Wouter Born b5e0ccfa6a
Add missing default translations for add-ons/marketplace configuration options ()
This makes it possible to use Crowdin for translating the new configuration options introduced in .

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-23 17:45:23 +01:00
openhab-bot 7e13f7f4bd
New Crowdin updates ()
* New translations addons.properties (Chinese Simplified)
* New translations addons.properties (Czech)
* New translations addons.properties (Dutch)
* New translations addons.properties (Finnish)
* New translations addons.properties (French)
* New translations addons.properties (German)
* New translations addons.properties (Greek)
* New translations addons.properties (Hebrew)
* New translations addons.properties (Hungarian)
* New translations addons.properties (Italian)
* New translations addons.properties (Polish)
* New translations addons.properties (Portuguese, Brazilian)
* New translations addons.properties (Russian)
* New translations addons.properties (Spanish)
* New translations addons.properties (Ukrainian)
* New translations i18n.properties (Danish)
* New translations magic.properties (Dutch)
* New translations marketplace.properties (Dutch)
* New translations marketplace.properties (Hebrew)
* New translations marketplace.properties (Hungarian)
* New translations marketplace.properties (Italian)
* New translations network.properties (Danish)
* New translations SystemThingStatusInfos.properties (Dutch)
* New translations units.properties (Danish)
* New translations validation.properties (Danish)
* New translations validation.properties (Dutch)
* New translations voice.properties (Dutch)
2022-03-22 21:27:45 +01:00
J-N-K 41abd57161
Increase allowed deviation in PeriodicSchedulerImplTest ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-22 20:46:50 +01:00
J-N-K 5746a1ff2c
Fix enabling/disabling CommunityMarketplace ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-21 22:02:34 +01:00
Wouter Born 7fbd9768a7
Cleanup BundleVersion ()
Fixes a few SAT findings in the BundleVersion class.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-21 08:19:27 +01:00
J-N-K 4577562f08
[addonservices] Add version filtering ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-20 18:43:07 +01:00
J-N-K c2ba4dcd16
Fix build in localized environments ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-20 10:28:28 +01:00
J-N-K 45b5c6772a
Improve ThingManagerOSGiTest ()
This change ensures that the storage of bridge and thing are done before the initialization is reported.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-19 21:09:02 +01:00
J-N-K 79e070c7ac
Improve ScriptFileWatcherTest ()
Most of the tests add a timeout of 1s to account for small delays in async processing in the AbstractWatchService. This adds some more timeouts for tests which were missing those.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-19 21:08:00 +01:00
J-N-K 3d17049d52
Improve PeridodicSchedulerImplTest ()
* Improve PeridodicSchedulerImplTest

The old implementation truncated timestamps to 1/10 s. Under some circumstances this could result in a failed tests:

offset = 201 -> truncatedOffset = 2
200ms delay expected, adjustment calculation results in an actual delay of 198ms
time = 399 -> truncatedTime = 3

expected: truncatedOffset + expected => 2 + 2 = 4
actual: truncatedTime = 3

The new implementation allows for an error of +/- 10ms which is far more than needed.

* increase tolerance
* fix consecutive executions build up errors

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-19 21:07:08 +01:00
J-N-K 91614c2b12
Fix ServiceException when add-on handlers are not fully initialized ()
* Fix ServiceException when add-on handlers are not fully initialized

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-18 07:47:27 +01:00
Wouter Born a0cc58c807
Upgrade Eclipse OSGi system bundle to 3.17.200 in runtime BOM ()
This prevents deprecation warnings when running the itests with Java 17:

WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.eclipse.osgi.internal.framework.SystemBundleActivator (file:org.openhab.core.tests/target/test/tmp/testing/itest/cnf/cache/6.2.0/org.openhab.core.bom.runtime-index/org.eclipse.osgi-3.16.300.v20210525-1715.jar)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.framework.SystemBundleActivator
WARNING: System::setSecurityManager will be removed in a future release

See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=574729

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-18 07:44:47 +01:00
Wouter Born 9e33db6702
Remove MQTT system broker leftovers ()
The MqttService was used to keep track of the system MQTT brokers.
Since there are none it can be removed as well as the observer, tests, configuration and translations.

Fixes 

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-17 19:35:35 +01:00
Wouter Born 7ae37f810b
Fix typo in ScriptImpl exception message ()
Fixes 

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-17 11:50:20 +01:00
J-N-K 2686102f20
[thing] Show config validation messages in thing status ()
* Show config validation messages in thing status

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-17 11:49:08 +01:00
J-N-K dd5df810c8
Fix config validation for decimal parameters with limited options ()
* Fix config validation for decimal parameters with limited options

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-17 10:02:23 +01:00
J-N-K 0dcd57e7d8
Fix KAR installed check ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-16 09:24:43 +01:00
J-N-K 437b31dbe9
Fix things in REMOVING state initialize instead of getting removed ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-14 15:49:26 +01:00
Wouter Born b62b2e1c90
Update bnd.bnd for CertificateGenerator package change ()
There is also a bnd.bnd file referencing the CertificateGenerator so it also needs to be updated for the change in 

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 16:44:44 +01:00
J-N-K ea68ae0163
[rest] Allow binary MediaType for RawType item states ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 16:27:26 +01:00
J-N-K 794e925253
[discovery] keep format of thing properties ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 15:54:05 +01:00
J-N-K 0c73547046
Fix exception during startup when kar is not yet loaded ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 14:33:23 +01:00
Wouter Born ba4e73ccf4
Run org.openhab.core tests in forks to reduce build time ()
This saves about 1 minute when building this bundle.
Most bundles depend on org.openhab.core so cores would stay idle until this bundle is build in a parallel builds.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 12:11:11 +01:00
J-N-K c6fe634b0a
[test] Fix PersistenceExtensionTest ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 11:52:19 +01:00
J-N-K 73b76fa01d
[profile] Add accepted types to ProfileContext ()
* Add accepted types to ProfileContext

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-13 11:21:02 +01:00
Wouter Born 9eef6a3b6d
Fix CertificateGenerator package ()
The class is in a package that does not match the bundle name.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-13 10:42:06 +01:00
Wouter Born 92a6c1c283
Fix trigger channels not found ()
Trigger channel types failed to load because the item type became required with the changes in .
Also adds a unit test for the ThingDescriptionReader to prevent future regressions.

Fixes 

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-12 21:49:25 +01:00
J-N-K e64c06c22b
Upgrade build tools and allow building on macOS 12 / M1 ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-12 21:05:37 +01:00
Wouter Born e6ddeccd78
Add more null annotations to XML processing classes ()
This adds null annotations to many XML processing classes and a few others.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-10 19:57:31 +01:00
J-N-K c7aec15290
Fix missing STARTLEVEL_COMPLETE ReadyMarker ()
Since no requirements are defined for `STARTLEVEL_COMPLETE´ no `ReadyMarker` was added to the map of `ReadyMarker`s.

Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-09 22:05:30 +01:00
Wouter Born 7422a13e22
Remove temporary OSGi framework inclusion ()
The itests are run using an R7 framework so the inclusion no longer seems required.
This also allows for easily customizing Import-Package headers in itest bundles.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-09 21:49:58 +01:00
openhab-bot b2d3cdba1e
New Crowdin updates ()
* New translations validation.properties (Hungarian)

* New translations voice.properties (Hungarian)

* New translations SystemThingStatusInfos.properties (Hungarian)
2022-03-09 09:07:36 +01:00
lolodomo 23d43604ca
[voice] New optional arguments for console command voice startdialog ()
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-09 09:07:06 +01:00
lolodomo dab0a59b87
[standardinterpreter] Update french syntax ()
Use "imperatif" grammatical mode for commands

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-09 09:03:39 +01:00
GiviMAD f0664b3a0c
[standardinterpreter] spanish: fix text tokenization and on/off rule ()
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-03-09 09:02:06 +01:00
J-N-K 11c0ed53d0
Fix PersistentInbox tries to updated unmanaged things ()
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-03-09 08:59:33 +01:00
lolodomo 379287690e
[voice] New console commands to list the voice services ()
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2022-03-07 13:15:46 +01:00
Wouter Born f664d756c7
Correct GHA build step condition ()
Fixes that the wrong build step was made conditional in .
It should conditionally add annotations.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-06 09:19:26 +01:00
Wouter Born a54ef35adc
Add Java 17 to GHA CI build matrix ()
This adds Java 17 to the GitHub Actions CI build matrix so we can make sure the build keeps working with both Java 11 and Java 17.
It also updates the required Java version range used by the enforcer plugin so it is also possible to build with the supported Java versions.
Furthermore it prevents duplicate error annotations being added by only adding these in the Java 11 matrix build.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-05 17:24:10 +01:00
Wouter Born 44f9baff18
Upgrade Xtext/Xtend to 2.26.0, LSP4J to 0.12.0 ()
For release notes, see:

https://www.eclipse.org/Xtext/releasenotes.html#/releasenotes/2022/02/28/version-2-26-0

This release adds initial support for Java 17.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-05 11:28:56 +01:00
dalgwen 7f2edc6f93
[Voice] fix checklocale with RuleHumanLanguageInterpreter ()
Check for  emptyness and not for null. No service returns null.
But RuleHumanLanguageInterpreter returns an empty set to tell it has no locale preference.

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-03-03 15:55:48 +01:00
GiviMAD b4a5cd331a
[Voice] Fix "best match" format resolution and language check for services involved in dialog ()
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
2022-02-28 09:10:41 +01:00
Wouter Born 738149d44b
Remove unused local variable ()
Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-27 11:10:41 +01:00