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

Moved INFO_RESOURCES access to instance get method #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danharvey
Copy link

In pydaikin/daikin_brp069.py INFO_RESOURCES is modified on init but meant to be a constant. If init is called multiple times this will cause the list of resources to grow.

I've split out access of info resources to an instance method to allow modification per instance based on state.

This fixes #46

@fredrike
Copy link
Owner

Thanks for the pr!

Please make sure all tests passes and I'll be happy to merge this.

@fredrike
Copy link
Owner

fredrike commented Jan 10, 2025

This looks better than #44 as we should not modify the constant. I do however like the smaller change in #44.

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 this pull request may close these issues.

daikin_brp069 modifies class constant on init
2 participants