#PARALLEL_UPDATES
1 messages · Page 1 of 1 (latest)
Hi! So I'm still wondering what exactly parallel_updates controls and what it should be set to when I use an async Update method in my entities (DataUpdateCoordinator).
It depends on the integration and how the API can handle concurrent calls. When using a DataUpdateCoordinator the built in polling will be turned off, so then the PARALELL_UPDATES constant isn't relevant except for service calls, where it will decide how many concurrent service calls for a platform will run.
Great, thanks. So I guess setting it to 0 would deactivate it completely allowing service calls to parallel query the coordinator - which itself just queries once thanks to its debouncer?!
Yes. By default CoordinatorEntity deactivates the semaphore and allows concurrent service calls since it defines async_update method.