diff --git a/mqtt/odoo_rpc.py b/mqtt/odoo_rpc.py index 886152764..4aa9c4380 100644 --- a/mqtt/odoo_rpc.py +++ b/mqtt/odoo_rpc.py @@ -18,8 +18,7 @@ class OdooRPCClient: self._connect() def _connect(self): - self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url), verbose=False, use_builtin_types=True, - context=ssl._create_unverified_context()) + self.common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(self.url)) self.uid = self.common.authenticate(self.db, self.username, self.password, {}) if not self.uid: raise Exception("Authentication failed.") diff --git a/mqtt/requirements.txt b/mqtt/requirements.txt index e99c1fce4..0eb7bc4df 100644 --- a/mqtt/requirements.txt +++ b/mqtt/requirements.txt @@ -1,4 +1,4 @@ asyncio configparser aiomqtt -certifi \ No newline at end of file +pip-system-certs \ No newline at end of file