From dcff509b8e050b28c7e266f0e74b00ed65908f63 Mon Sep 17 00:00:00 2001 From: sunjie Date: Wed, 23 Jul 2025 20:22:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E4=BB=8E=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=90=8C=E6=AD=A5=E5=88=B0=E6=9C=8D=E5=8A=A1=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E4=BF=A1=E6=81=AF,=E4=B8=8D=E8=A6=81=E5=86=8D?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=9B=9E=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mqtt/odoo_rpc.py | 3 +-- mqtt/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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