Matter: fix autoconfiguration after configuration reset (#24997)

This commit is contained in:
gudinis
2026-09-05 13:56:40 +02:00
committed by GitHub
parent 40c24e193e
commit e17a83c510
@@ -553,13 +553,17 @@ class Matter_Device
self.ipv4only = bool(j.find("ipv4only", false))
self.disable_bridge_mode = bool(j.find("disable_bridge_mode", false))
self.next_ep = j.find("nextep", self.next_ep)
self.plugins_config = j.find("config", {})
self.debug = bool(j.find("debug")) # bool converts nil to false
self.plugins_config = j.find("config", nil)
self.debug = bool(j.find("debug"))
if self.plugins_config != nil
log(f"MTR: Load_config = {self.plugins_config}", 3)
self.adjust_next_ep()
dirty = self.check_config_ep()
self.plugins_persist = true
else
self.plugins_config = {}
self.plugins_persist = false
end
self.plugins_config_remotes = j.find("remotes", {})
if self.plugins_config_remotes