Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyle [Python] Process attribute cache updates in Python thread #35572

Conversation

restyled-io[bot]
Copy link
Contributor

@restyled-io restyled-io bot commented Sep 13, 2024

Automated style fixes for #35557, created by Restyled.

The following restylers made fixes:

To incorporate these changes, merge this Pull Request into the original. We
recommend using the Squash or Rebase strategies.

NOTE: As work continues on the original Pull Request, this process will
re-run and update (force-push) this Pull Request with updated style fixes as
necessary. If the style is fixed manually at any point (i.e. this process finds
no fixes to make), this Pull Request will be closed automatically.

Sorry if this was unexpected. To disable it, see our documentation.

agners and others added 3 commits September 12, 2024 19:30
Add new subscription callback which uses raw AttributePath as paths
of changed attributes. This allows to subscribe to custom clusters,
where no Cluster/Attribute types are part of the Python library.

Also allow to get the raw Python values (in tagged dict format)
directly from the subscription transaction.
Make sure to get the attribute values again after each command to get
the updated attribute cache.
@restyled-io restyled-io bot added the restyled label Sep 13, 2024
Copy link

semanticdiff-com bot commented Sep 13, 2024

Review changes with SemanticDiff.

Analyzed 1 of 1 files.

1 files do not contain logic changes.

Filename Status
✔️ src/controller/python/chip/clusters/Attribute.py No logic changes found

@agners agners force-pushed the avoid-processing-attribute-cache-update-on-sdk-thread branch from eba1724 to 1f0182b Compare September 13, 2024 10:45
@restyled-io restyled-io bot closed this Sep 13, 2024
@restyled-io restyled-io bot deleted the restyled/avoid-processing-attribute-cache-update-on-sdk-thread branch September 13, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants