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

get_live_data gets called once per entity #76

Closed
robcos opened this issue Jun 23, 2021 · 3 comments
Closed

get_live_data gets called once per entity #76

robcos opened this issue Jun 23, 2021 · 3 comments

Comments

@robcos
Copy link

robcos commented Jun 23, 2021

get_live_data gets called at the top of async_update and if I understand correctly, this gets called for each entity. I have 10+ devices which means that a) we are hammering the hub b) it takes a while for a thermostat to update since these calls are quite slow.

What is the right way of dealing with this? Should we implement a cache within NeoHub or is there a neat way to deal with it in HomeAssistant?

@robcos robcos changed the title get_live_data gets called tons of times get_live_data gets called once per entity Jun 23, 2021
@ribbal
Copy link
Contributor

ribbal commented Nov 4, 2021

I've created a pull request (#88) which adds enhancements to the changes that @robcos had started, and appears to work.

@stikonas
Copy link
Contributor

stikonas commented Jan 4, 2022

I guess this can be closed now

@MindrustUK
Copy link
Owner

Will review again in 30 days if there is no activity and close.

@robcos robcos closed this as completed Jan 10, 2022
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

No branches or pull requests

4 participants