Commit 6a4e00a
committed
fix(energy): align AuthorizedClientType with Tesla protobuf enum
Replace placeholder LAN=1 with the three values defined in Tesla's
AuthorizedClientType enum, as reverse-engineered in pypowerwall's
tedapi_combined.proto:
INVALID = 0
CUSTOMER_MOBILE_APP = 1
VEHICLE = 2
There is no WiFi-specific value — WiFi vs LAN refers to the transport,
not the client type. pypowerwall registers its RSA key as
CUSTOMER_MOBILE_APP, so that becomes the default for add_authorized_client.
Also document that AuthorizedClientKeyType.RSA=1 is empirically derived;
Tesla has not published the full key_type enum body publicly.1 parent 4e810f3 commit 6a4e00a
2 files changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
218 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
221 | 237 | | |
222 | 238 | | |
223 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments