Skip to content

Commit

Permalink
[siemensrds] Hide already instantiated Things in the InBox (openhab#9808
Browse files Browse the repository at this point in the history
)

* [siemensrds] null value check
* [siemensrds] representation property

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
  • Loading branch information
andrewfg authored and thinkingstone committed Nov 7, 2021
1 parent 8d27efb commit 283a844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public boolean refresh(String apiKey, String token) {
@Nullable
RdsDataPoints newPoints = GSON.fromJson(json, RdsDataPoints.class);

Map<String, @Nullable BasePoint> newPointsMap = newPoints.points;
Map<String, @Nullable BasePoint> newPointsMap = newPoints != null ? newPoints.points : null;

if (newPointsMap == null) {
throw new RdsCloudException("new points map empty");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<property name="vendor">Siemens</property>
<property name="modelId">RDS</property>
</properties>
<representation-property>plantId</representation-property>

<config-description>
<parameter name="plantId" type="text" required="true">
Expand Down

0 comments on commit 283a844

Please sign in to comment.