Commit 8448e95
fix(proto): pin protobuf gencode to 6.32.0 for Home Assistant compatibility (#40)
* Regenerate protobuf gencode for protobuf 6.32.0 (HA compat), bump to 1.5.2
Home Assistant core pins protobuf==6.32.0, but the 1.5.1 gencode was
stamped 6.33.4 and calls ValidateProtobufRuntimeVersion(6, 33, 4, ...),
which refuses to load on the 6.32.0 runtime (gencode newer than runtime
=> VersionError). This forced a core-wide protobuf bump when dropping the
library into HA.
Regenerate every *_pb2.py under tesla/vehicle/proto/ from the unchanged
.proto sources using protoc v32.0 (tools/regenerate_protos.sh with
protoc-32.0 on PATH), so the gencode is stamped 6.32.0. Only the version
stamp lines change; the serialized descriptors are byte-identical, so
this is a pure toolchain/version change with no schema drift. The .pyi
stubs are unaffected (no version stamp).
Raise the protobuf floor to >=6.32.0 to match the gencode: gencode 6.32.0
requires the runtime to be >= 6.32.0, so the previous >=6.31.1 floor was
unsafe (a resolved 6.31.1 would VersionError at import). The floor is not
raised above 6.32.0, so HA's exact pin still satisfies it. No upper cap:
protobuf 7.x loads major-6 gencode without error, so a <7 cap would only
exclude valid runtimes.
Document the reproducible regen (protoc v32.0 -> 6.32.0 gencode, and the
floor-must-match-gencode rule) in AGENTS.md. Bump version 1.5.1 -> 1.5.2.
Verified with protobuf==6.32.0: all nine *_pb2 modules import cleanly and
the full test suite passes (37 passed); 6.31.1 fails as expected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* no-mistakes(document): Sync protoc/protobuf version docs with 6.32.0 gencode pin
* no-mistakes(document): Bump upgradeProtoc.sh PROTOC_VERSION to 32.0 for gencode pin
---------
Co-authored-by: firstmate crewmate <crewmate@firstmate.local>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a3ee30b commit 8448e95
17 files changed
Lines changed: 47 additions & 39 deletions
File tree
- tesla_fleet_api.egg-info
- tesla_fleet_api
- tesla/vehicle/proto
- tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments