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

Delay initializing workaround dict #101

Merged
merged 1 commit into from
Dec 29, 2021
Merged

Conversation

balloob
Copy link
Collaborator

@balloob balloob commented Dec 29, 2021

Initializing it on class level means it's shared across instances. Better to initialize it when needed on a per-instance basis.

Since item IDs are random, probably not an issue. Just cleaner.

@marcelveldt
Copy link
Collaborator

While there is only one instance of this controller, this is better indeed.

@balloob
Copy link
Collaborator Author

balloob commented Dec 29, 2021

Once instance per Hue bridge :)

@balloob balloob merged commit 6e8654a into master Dec 29, 2021
@balloob balloob deleted the delay-workaround-dict-init branch December 29, 2021 21:22
@marcelveldt
Copy link
Collaborator

Once instance per Hue bridge :)

Oh, right... forgot about that!

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.

None yet

2 participants