Skip to content

Correct the Gateway 1 login wording in the Powerwall docs - #236

Merged
Bre77 merged 1 commit into
mainfrom
fm/gateway1-docstring
Nov 26, 2026
Merged

Bre77 merged 1 commit into
mainfrom
fm/gateway1-docstring

Conversation

@Bre77

@Bre77 Bre77 commented Nov 26, 2026

Copy link
Copy Markdown
Member

The PowerwallClient.legacy_gateway docstring, the is_legacy_gateway docstring 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.

@gitar-bot

gitar-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 🟢 Low risk 0 closed / 1 findings

The 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 PowerwallClient.legacy_gateway and is_legacy_gateway docstrings and the local-control docs, so every Gateway 1 is described as refusing the last-5-characters login and taking the customer (Legacy) password unchanged; behaviour is unchanged. Consider updating the V1rTransport.__init__ comment in transport.py that still describes the old 'early Gateway 1' wording so it matches the new docs.

💡 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 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)
🤖 Prompt for agents
Code Review: Corrects the Backup Gateway 1 login wording in the `PowerwallClient.legacy_gateway` and `is_legacy_gateway` docstrings and the local-control docs, so every Gateway 1 is described as refusing the last-5-characters login and taking the customer (Legacy) password unchanged; behaviour is unchanged. Consider updating the `V1rTransport.__init__` comment in `transport.py` that still describes the old 'early Gateway 1' wording so it matches the new docs.

1. 💡 Quality: transport.py comment still describes the old 'early Gateway 1' wording
   Files: tesla_fleet_api/tesla/powerwall/client.py:230-234, tesla_fleet_api/tesla/powerwall/client.py:1777

   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.

   Fix (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)

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Approved

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

Comment on lines +230 to +234
"""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.

@gitar-bot gitar-bot Bot Nov 26, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 👍 / 👎

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitar has auto-approved this PR (configure)

@Bre77
Bre77 merged commit 47fa47a into main Nov 26, 2026
8 checks passed
@Bre77
Bre77 deleted the fm/gateway1-docstring branch November 26, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant