Thursday, November 30, 2023
2 changes · 17.0
Code cleanup and technical improvements
The IoT connection startup flow was simplified by folding an unused helper step into the main process. This reduces internal complexity without changing how users interact with IoT devices.
Original PR description
Previously, there was a function called 'start_client' that was invoked by the 'run' function. As 'start_client' was solely invoked within 'run' and served no additional purpose, its functionality has been incorporated directly into the 'run' function.
This update reorganizes imports in the IoT websocket client to follow Odoo coding guidelines. It does not change user-facing behavior, but helps keep the codebase consistent and easier to maintain.
Original PR description
The order of the imports have been changed in websocket_client.py to follow odoo guidelines