You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mqtt.homeassistant] fix unbounded growth of config for device_trigger (openhab#17894)
Because of how it shares a channel, whenever openHAB was rebooted and it
would first restore the device trigger components from the channel configuration,
and then from the MQTT message, it didn't identify it as the same component
as before, and so would merge into another instance of itself. My Things.json
is normally 13MB, and had grown to 545MB, and my openHAB was constantly having
memory issues! So now just make sure we only keep unique information, which
will automatically clean up anyone in a bad state.
Signed-off-by: Cody Cutrer <[email protected]>
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/DeviceTrigger.java
+12-6
Original file line number
Diff line number
Diff line change
@@ -111,17 +111,22 @@ public boolean merge(DeviceTrigger other) {
0 commit comments