diff --git a/addons/hw_drivers/main.py b/addons/hw_drivers/main.py index 8f7b005797c..9987824d52f 100644 --- a/addons/hw_drivers/main.py +++ b/addons/hw_drivers/main.py @@ -96,7 +96,7 @@ class Manager(Thread): _logger.warning("An error happened when trying to get the HTTPS certificate: %s", certificate_details) - iot_client = WebsocketClient(helpers.get_odoo_server_url()) + iot_client = helpers.get_odoo_server_url() and WebsocketClient(helpers.get_odoo_server_url()) # We first add the IoT Box to the connected DB because IoT handlers cannot be downloaded if # the identifier of the Box is not found in the DB. So add the Box to the DB. self.send_alldevices(iot_client)