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

add reset functionality for attributes #760

Closed
DaJansenGit opened this issue Dec 10, 2024 · 0 comments · Fixed by #761
Closed

add reset functionality for attributes #760

DaJansenGit opened this issue Dec 10, 2024 · 0 comments · Fixed by #761
Assignees

Comments

@DaJansenGit
Copy link
Member

DaJansenGit commented Dec 10, 2024

For attributes, for which a __get__ via element.attribute (e.g. tz.lighting_power) has been performed before and thus are already calculated, the status will be STATUS_AVAILABLE. Those attributes won't be recalculated again if the get` method is called again. This behaviour is on purpose and totally fine, but in some cases (e.g. enrichment) we want to reset those attributes, to make sure that the enrichment works properly.

Therefore we need a reset option for attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant