Skip to content

Commit

Permalink
Merge pull request #38 from snicker/fix_protobuf_compiling_errors
Browse files Browse the repository at this point in the history
implement protobuf workaround
  • Loading branch information
snicker authored Apr 20, 2023
2 parents c61a623 + 8aed77c commit 259ee98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/zwift/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 259ee98

Please sign in to comment.