Repository navigation
OneDrive backup: publish via internal broker, works with user management - #4376
Open
seaspotter wants to merge 1 commit into
Open
seaspotter wants to merge 1 commit into
seaspotter wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="packages/modules/backup_clouds/onedrive/api.py" line_range="36" />
<code_context>
log.debug("Config to MQTT:" + str(backupcloud_to_mqtt))
- publish.single("openWB/set/system/backup_cloud/config", backupcloud_to_mqtt, retain=True, hostname="localhost")
+ pub_single("openWB/set/system/backup_cloud/config", backupcloud_to_mqtt, no_json=True)
</code_context>
<issue_to_address>
**Retained configuration stays stale**
When the internal broker is unavailable or rejects a publish, or the calling process exits before the queued QoS 0 message is sent, `pub_single` ignores the publish result and returns after queuing the update, so `save_tokencache` and `generateMSALAuthCode` report success before the retained configuration is persisted; refreshed credentials or authorization state disappear or remain stale.
Use a synchronous retained publish so the update is persisted before these functions return.
Also at `packages/modules/backup_clouds/onedrive/api.py:109`.
</issue_to_address>
LKuemmel
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#4375
Summary by Sourcery
Route OneDrive backup configuration updates through the internal broker to support user management.
Bug Fixes:
Enhancements: