]> git.basschouten.com Git - openhab-addons.git/commit
[plugwise] Use ThingHandlerService for discovery (#9041)
authorWouter Born <github@maindrain.net>
Mon, 16 Nov 2020 01:29:02 +0000 (02:29 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 01:29:02 +0000 (17:29 -0800)
commit57177ccdff24e4bd438f0e4c66c50b723b8e5919
tree5032a681b8e169f6b401650a10dbcf63649b1f70
parent09b0e3fb1bda0e1b9e421e1e8adf4cc9523cb3b6
[plugwise] Use ThingHandlerService for discovery (#9041)

This simplifies the PlugwiseHandlerFactory code so it no longer needs to register and keep track of a discovery service for each bridge.

Also contains a few other improvements:

* fix lastRequest timestamp not updated when sending messages to discover node properties
* use java.time Duration and Instant
* use List.of, Set.of
* remove redundant null suppression because of EEAs

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseBindingConstants.java
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseHandlerFactory.java
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseThingDiscoveryService.java
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/PlugwiseUtils.java
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/handler/PlugwiseRelayDeviceHandler.java
bundles/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/internal/handler/PlugwiseStickHandler.java