Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change GW_IP to self.gw_ip #129

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

Nexarian
Copy link
Contributor

@Nexarian Nexarian commented Jan 4, 2025

The hard-coded 192.168.91.1 for the Tesla Inverters internal endpoint doesn't always work if you're using NAT. Change this to be compatible with the rest of the file and to enable this use-case.

Tested with a custom NAT configuration to verify that the firmware loads properly with a non-192.168.91.1 host.

The hard-coded 192.168.91.1 for the Tesla Inverters internal endpoint
doesn't always work if you're using NAT. Change this to be compatible
with the rest of the file and to enable this use-case.
@@ -493,7 +493,7 @@ def get_firmware_version(self, force=False, details=False):
pb.message.recipient.din = self.din # DIN of Powerwall
pb.message.firmware.request = ""
pb.tail.value = 1
url = f'https://{GW_IP}/tedapi/v1'
url = f'https://{self.gw_ip}/tedapi/v1'
Copy link
Owner

Choose a reason for hiding this comment

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

Wow! Great fix. This should have been self.gw_ip.

@jasonacox
Copy link
Owner

Thank you @Nexarian ! This looks good.

@jasonacox jasonacox merged commit 34d7c00 into jasonacox:main Jan 5, 2025
10 checks passed
@Nexarian Nexarian deleted the nexarian/update_gw_ip_tedapi branch January 5, 2025 02:18
@jasonacox
Copy link
Owner

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.

2 participants