Concurrent issue with module initialization

Hi,
I’m trying to implement a customize component for my RS485 PLC boards to control the house lights.
I introduced the platform and the switch class, and configured two PLC boards with different addresses.
During the test, I found that the switch entities will be initialized concurrently and due to an invoke on pySerial during init, I have to synchronize the access to serial port to avoid random exceptions from pySerial.

So here is my question: this looks like to be a pitfall, is there any documents/guide available for the concurrent initializing of HASS components ?

Thanks,