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

subscribe_state excessive buffering #815

Open
ducky64 opened this issue Jan 30, 2024 · 1 comment
Open

subscribe_state excessive buffering #815

ducky64 opened this issue Jan 30, 2024 · 1 comment

Comments

@ducky64
Copy link

ducky64 commented Jan 30, 2024

Running the example 'subscribe to state changes', while the connect and device info returns pretty fast, once subscribe_state is called, it tends to buffer for ~20s before returning bunch of state updates at once.

This seems to happen when the ESPHome device is streaming data frequently. When there is less frequent data sent (say, only one sensor with a 3s update time), the delay becomes very short.

This happens on Windows 10, Windows 11, and WSL in Windows 10 (though in WSL, the buffering time is lower, but still quite significant). There seems to be no perceptible buffer delay in Linux (as a virtual machine on a Windows 10 host).

@bdraco
Copy link
Member

bdraco commented Sep 3, 2024

fixed by #932 but needs python to support it in python/cpython#123478

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

2 participants