Fix config normalization in ThingUpdatedEvent (#3157)

Signed-off-by: Jan N. Klug <github@klug.nrw>
pull/3158/head
J-N-K 2022-11-13 10:44:30 +01:00 committed by GitHub
parent 2bceba6954
commit d4ceca9fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -610,6 +610,7 @@ public class ThingManagerImpl
@SuppressWarnings("PMD.CompareObjectsWithEquals")
public void thingUpdated(Thing oldThing, Thing newThing, ThingTrackerEvent thingTrackerEvent) {
ThingUID thingUID = newThing.getUID();
normalizeThingConfiguration(oldThing);
normalizeThingConfiguration(newThing);
if (thingUpdatedLock.contains(thingUID)) {
// called from the thing handler itself, therefore