Repository navigation
Correct the Gateway 1 login wording in the Powerwall docs - #236
Conversation
Code Review 👍 Approved with suggestions 🟢 Low risk 0 closed / 1 findingsThe docstrings and local-control docs only clarify Gateway 1 password wording; executable behavior and login handling remain unchanged. Corrects the Backup Gateway 1 login wording in the 💡 Quality: transport.py comment still describes the old 'early Gateway 1' wording📄 tesla_fleet_api/tesla/powerwall/client.py:230-234 📄 tesla_fleet_api/tesla/powerwall/client.py:1777 This PR updates the Align the transport comment with the corrected wording🤖 Prompt for agentsVerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved For more verification details, comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
| """Create a client for a Backup Gateway 1 (Powerwall 2) unit. | ||
|
|
||
| These units reject the last-5-characters login that the default | ||
| constructor sends, and need the full ``gateway_password`` instead. | ||
| constructor sends. Pass the customer (Legacy) password set in the | ||
| Tesla One app as ``gateway_password``; it is sent unchanged. |
There was a problem hiding this comment.
💡 Quality: transport.py comment still describes the old 'early Gateway 1' wording
This PR updates the legacy_gateway and is_legacy_gateway docstrings and the docs. They now say every Backup Gateway 1 refuses the last-5 login and takes the customer (Legacy) password from the Tesla One app, sent unchanged. The comment in V1rTransport.__init__ (transport.py), on the line that picks password if legacy_gateway else _customer_password(password), was not updated. It still says "Early Gateway 1 (Powerwall 2) units reject the truncated password and need the full value." That contradicts the new docs and could lead a maintainer to treat the untruncated value as the full gateway/WiFi password again. Update that comment to match.
Align the transport comment with the corrected wording:
# Backup Gateway 1 (Powerwall 2) units reject the last-5-characters
# login; they take the customer (Legacy) password set in the Tesla
# One app, sent unchanged.
self._password = password if legacy_gateway else _customer_password(password)
Was this helpful? React with 👍 / 👎
The
PowerwallClient.legacy_gatewaydocstring, theis_legacy_gatewaydocstring and the local-control docs said only early Backup Gateway 1 units reject the last-5-characters login and that they take the full gateway password. The evidence (the Gateway 1 proof of concept in Teslemetry/aiopowerwall#31, and other projects' Gateway 1 reports of "default password not supported" for the last-5 login) points to every Gateway 1 refusing the default login, and to the working credential being the customer (Legacy) password set in the Tesla One app, sent unchanged. This changes only the wording; behaviour is unchanged.