Skip to content

Commit

Permalink
[openwebnet] Fix discovery of devices on local bus
Browse files Browse the repository at this point in the history
Fixes openhab#11582

Signed-off-by: Massimo Valla <mvcode00@gmail.com>
  • Loading branch information
mvalla committed Nov 27, 2021
1 parent 5f0f75f commit 6dbd823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -188,7 +188,7 @@ public void newDiscoveryResult(Where where, OpenDeviceType deviceType, @Nullable

DiscoveryResult discoveryResult = null;

String whereConfig = bridgeHandler.normalizeWhere(where);
String whereConfig = where.value();
if (where instanceof WhereZigBee && WhereZigBee.UNIT_02.equals(((WhereZigBee) where).getUnit())) {
logger.debug("UNIT=02 found (WHERE={}) -> will remove previous result if exists", where);
thingRemoved(thingUID); // remove previously discovered thing
Expand Down
Expand Up @@ -600,7 +600,7 @@ public String thingIdFromWhere(Where where) {
}

/**
* Normalize a Where address
* Normalize a Where address to generate ownId and Thing id
*
* @param where the Where address
* @return the normalized address as String
Expand Down

0 comments on commit 6dbd823

Please sign in to comment.