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

create separate config instance and change max pool configuration #11

Merged

Conversation

DigitalBites
Copy link
Contributor

Update the API Client setup to separate out configuration enabling us to change the connection_pool_maxsize. This parameter defaults to 100 in the Luxor API. Given these are little micro-controllers on a landscape lighting controller, this appears to be causing disconnects when too many api calls are made.

Per the Luxor Open API documents, setting this to a small value will queue the requests and send them automatically so this setting should be safe. I've tested this with multiple groups being changed at the same time by adding those Luxor groups to a card, changing the on/off toggle in the header of the home-assistant card and it appears things are updating and working properly.

This Closes #10

@DigitalBites
Copy link
Contributor Author

@dcramer possible to approve this? Any thoughts?

@dcramer
Copy link
Owner

dcramer commented Aug 26, 2023

🙏 sorry was in my backlog

@dcramer dcramer merged commit 8708b22 into dcramer:master Aug 26, 2023
1 of 3 checks passed
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.

Quickly changing on/off status of multiple groups fails to complete
2 participants