From 8aed77c63e748e5469cd8a21513dc497e874caa8 Mon Sep 17 00:00:00 2001 From: snicker Date: Wed, 19 Apr 2023 21:44:19 -0700 Subject: [PATCH] force protobuf implementation to use pure python until upstream zwiftclient library is recompiled for newer version of protobuf --- custom_components/zwift/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/zwift/sensor.py b/custom_components/zwift/sensor.py index 4131b79..8221d06 100644 --- a/custom_components/zwift/sensor.py +++ b/custom_components/zwift/sensor.py @@ -338,6 +338,8 @@ def is_metric(self): return False async def _connect(self): + import os + os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python' from zwift import Client as ZwiftClient client = ZwiftClient(self.username, self.password) if await self.check_zwift_auth(client):