Skip to content

Commit

Permalink
Merge pull request #45 from snicker/fix_protobuf
Browse files Browse the repository at this point in the history
fix relative import statement for patch
  • Loading branch information
snicker authored Sep 17, 2023
2 parents ed1aca9 + 209f9df commit 53c1b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/zwift/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"documentation": "https://github.com/snicker/zwift_hass/blob/master/README.md",
"requirements": ["zwift-client==0.2.0"],
"dependencies": [],
"version": "3.3.2",
"version": "3.3.3",
"codeowners": ["@snicker"],
"iot_class": "cloud_polling"
}
2 changes: 1 addition & 1 deletion custom_components/zwift/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ async def _connect(self):
# we need to patch the zwift protobuf as the upstream
# library has not yet been updated (9/16/2023)
import sys
from zwift_patch import zwift_messages_pb2 as new_pb2
from .zwift_patch import zwift_messages_pb2 as new_pb2
sys.modules['zwift.zwift_messages_pb2'] = new_pb2
# evil patch ends here

Expand Down

0 comments on commit 53c1b9f

Please sign in to comment.