Commit Graph

687 Commits

Author SHA1 Message Date
Christoph Weitkamp
e2132a7a46 Use constructor injection to simplify lifecycle (#994)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-24 23:45:46 +02:00
Christoph Weitkamp
be1cd25743 [itemregistry] Use constructor injection to simplify lifecycle (#988)
* Use constructor injection to simplify lifecycle

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>

* PR extended by ItemStateConverter

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-23 18:21:28 +02:00
Christoph Weitkamp
c8395ef5be [persistence] Use constructor injection to simplify lifecycle (#991)
* Use constructor injection to simplify lifecycle
* Added nullness annotations to PersistenceManager
* Removed declaration with null

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-21 20:42:02 +02:00
Stewart Cossey
f51bd640f3 Fix incorrect unit symbol for Byte and add unit symbol for Octet. (#990)
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
2019-08-21 20:34:08 +02:00
lolodomo
cb39c5b802 GetLabel: Handle correctly string value looking like a transform pattern (#959)
* GetLabel: Handle correctly string value looking like a transform pattern

Fixes #957

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-19 12:55:28 +02:00
lolodomo
dcea4aa380 ItemUIRegistry: getLabel returning DateTime item formatted in local time zone (#951)
* ItemUIRegistry: getLabel returning DateTime item formatted in local time zone

Fixes #832

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-17 22:28:34 +02:00
Christoph Weitkamp
11b1334ca7 Enable Config XML Tests (#971)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-17 22:27:53 +02:00
Christoph Weitkamp
2198eea37f Added feature for jackson (#969)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-17 22:27:14 +02:00
lolodomo
8fb20a4977 [semantics] Fix properties loading (#977)
Fix #956

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-16 21:24:15 +02:00
Hilbrand Bouwkamp
78cd43061c [archetype] Fix groovy script to handle certain cases (#980)
This change handles the following cases:
- New binding that will be the first entry in the list
- New binding that is placed after/between multi project bindings. Like bluetooth and mqtt (reported in openhab/openhab2-addons#5860)

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-08-15 21:50:03 +02:00
Philipp Waller
608507e451 [automation] Update configDescriptions for jsr223.ScriptedTrigger (#964)
Fixes #962 

Signed-off-by: Philipp Waller <philipp.waller@gmail.com>
2019-08-13 21:27:29 +02:00
Christoph Weitkamp
3e38733b09 Fixed spelling in JavaDoc (#975)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-13 21:21:13 +02:00
Christoph Weitkamp
49e2286a94 Use constructor injection to simplify lifecycle (#976)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-08-13 21:20:43 +02:00
lolodomo
0820701ffc [DSL rule] New implicit variable newState (#973)
Fix #925

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-13 21:13:03 +02:00
lolodomo
aebcc6cd9a [DSL] Unique job key for createTimer in DSL rule (#972)
Fixes #943

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-13 21:12:23 +02:00
J-N-K
a17d63ad64 increase paho inflight message limit (#970)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2019-08-12 11:08:39 +02:00
lolodomo
921c1c1004 Fix integration test for thing: TimestampChangeProfile (#966)
Fixes #961

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-11 19:15:48 +02:00
lolodomo
e05819f6c1 Fix integration test for ExpiringCacheAsync (#968)
Fixes #967

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-10 19:20:36 +02:00
Wouter Born
9d2f09936d Fix null annotations order and cleanup (#958)
* Move null annotations between modifiers and variable type
* Remove redundant public modifiers from interfaces where applicable
* Remove redundant `@NonNull` annotations

Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-08 09:42:30 +02:00
J-N-K
f433a5683f fix TopicSubscribers (#955)
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2019-08-05 22:14:31 +02:00
Wouter Born
c136254d5b
Fix empty reactor summary on newer Maven versions
On newer Maven versions the reactor summary also contains the project name and version so the regexp needs to be adjusted for this.
Also make sure grep treats binary data as text (-aE switch) so the pipe doesn't choke on this.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-08-05 14:40:49 +02:00
lolodomo
f03f328bf0 DateTimeType: new methods toZone and toLocaleZone (#945)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2019-08-02 13:57:39 +03:00
Kai Kreuzer
c3af31e663 Removed old IDE setup files as they are superseded by the ones in openhab-distro (#949)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-08-01 09:15:00 +02:00
Wouter Born
9e7c6af1c8 Fix "No SerialPortProvider found" on startup (#939)
Change reference cardinality from MULTIPLE to AT_LEAST_ONE so the serial port provider can be used immediately when ThingHandlers are initialized.

Fixes #937

This would always result in the following logging on startup:

[WARN ] [serial.internal.SerialPortManagerImpl] - No SerialPortProvider found for: /dev/ttyUSB0

Bindings without serial port reconnection logic would need to be manually restarted (Z-Wave Binding).

Signed-off-by: Wouter Born <github@maindrain.net>
2019-07-29 22:23:18 +03:00
Christoph Weitkamp
95e0190d55 Avoid multiple type castings (#946)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-28 11:32:15 +02:00
Christoph Weitkamp
c95dfcb1cc Added formatting tests for DateTimeType (#938)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 21:56:22 +02:00
Hilbrand Bouwkamp
5b73b98ded [archetype] Fix for double modules in bundle pom (#936)
Due to changes in the archetype maven it generated multi module name with tabs prefixed. This caused the module name to be inserted twice because the added module by maven plugin was not removed when the module is moved by the groovy script.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-07-22 13:18:42 +02:00
Wouter Born
657d63f4f9 Sync Jetty version with version used by Karaf 4.2.6 (#934)
Resolves the Jetty bundle duplicates as reported in #892.

Signed-off-by: Wouter Born <github@maindrain.net>
2019-07-22 10:48:20 +02:00
Christoph Weitkamp
4f3e1c17cb Added equality tests for parsing and timzone (#933)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-22 10:44:10 +02:00
Markus Rathgeb
ef05b4d878 start with an upper case on "initial contribution" (#931)
Related to: https://github.com/openhab/openhab-core/pull/916/#discussion_r305082016

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-21 12:24:58 +02:00
Kai Kreuzer
b6aae6907f Revert "openHAB JAX-RS publisher (#905)"
This reverts commit ad81f040de.
2019-07-17 11:55:29 +02:00
Kai Kreuzer
b3aabd73ab Revert "remove leftovers of REST optimize (#907)"
This reverts commit c86cbea3ba.
2019-07-17 11:55:29 +02:00
Christoph Weitkamp
165df518de Bump tec.uom libraries (#923)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-14 21:37:07 +02:00
Christoph Weitkamp
4b7eddf16e [automation] Fixed topic (#922)
- Fixed topic for `ThingStatusTriggerHandler`. Is is called "things", not "thing".

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-12 21:01:42 +02:00
Markus Rathgeb
522af08531 provide Java EE modules (#920)
Also-by: Jan N. Klug <jan.n.klug@rub.de>
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-12 17:59:15 +02:00
Christoph Weitkamp
17c756513a [automation] Added 'ThingStatusTrigger' for NGRE (#911)
* Added ThingStatusTrigger for NGRE

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-10 11:57:54 +02:00
Markus Rathgeb
781165f3d8 fix nullness handling in itests (#913)
After adding the nullness annotations to the automation stuff, we need
to fix the usage to use a correct nullness handling.

Related to: https://github.com/openhab/openhab-core/pull/910

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-09 22:58:22 +02:00
Christoph Weitkamp
abab07dfb9 [automation] Added nullness annotations (#910)
* Added nullness annotations

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-07-08 10:53:25 +02:00
maniac103
7bad7f6e3f Add missing null check to PageChangeListener. (#909)
If visibility of a sitemap widget that does not have a (valid) item is
changed, 'itemToBeSent' becomes null, in which case we need to omit
filling out 'event.item' and 'event.state' (and keep them as null).

Closes #897

Signed-off-by: Danny Baumann <dannybaumann@web.de>
2019-07-04 11:36:22 +02:00
Markus Rathgeb
c86cbea3ba remove leftovers of REST optimize (#907)
The project has been replaced by REST publisher and the sources should
be removed by https://github.com/openhab/openhab-core/pull/905
It seems something went wrong.
Let's remove it now!

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-02 16:45:40 +02:00
Markus Rathgeb
ad81f040de openHAB JAX-RS publisher (#905)
* add project for publisher
* add unmodified com.eclipsesource.jaxrs.publisher sources
* modify and use modified publisher
* drop tracker usage (only for custom whitelist by fragments)
* add the new code to new classes and namespace

Also-by: Kai Kreuzer <kai@openhab.org>
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-07-01 21:08:03 +02:00
Christoph Weitkamp
01f4724575 Added action for bank holiday from a given userfile (#901)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-26 13:23:37 +02:00
Kai Kreuzer
957cbe045c moved resources folder out of java source folder (#900)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-06-26 06:42:37 +02:00
Christoph Weitkamp
c2af2465d1 Added nullness annotations (#898)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-25 18:36:32 +02:00
Christoph Weitkamp
6d073daa82 Updated xml schema locations to openHAB (#899)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-25 18:30:07 +02:00
Daniel Walters
22937ae02f Fix typo in exception message (#896)
Signed-off-by: Daniel Walters <danielwalters1@hotmail.com>
2019-06-25 06:44:13 +02:00
Björn Brings
7fdef0717e Reduce polling frequency of usb serial scanner (#889)
* Reduce polling frequency

Signed-off-by: Björn Brings <bjoernbrings@web.de>
2019-06-24 19:13:59 +02:00
Markus Rathgeb
cf4a01063a bump super POM (#894)
Related to: https://github.com/openhab/infrastructure/issues/9

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-23 23:57:28 +02:00
Kai Kreuzer
ce352d0ca7 corrected artifact name (#893)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-06-23 22:02:44 +02:00
Markus Rathgeb
5fda143230 simplify contains, get, compute separation (#887)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-20 21:35:43 +02:00