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

Fix errors with site references #115

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

Nexarian
Copy link
Contributor

New Tesla user here, I have only Tesla solar inverters, and I was unable to access them with pypowerwall unless I applied this fix. Pypowerwall would crash when trying to find the site_name. The broken line was self.siteid = sites[self.siteindex].get('energy_site_id') in pypowerwall_fleetapi.py

Otherwise, make the change_site functions consistent and less error-prone! The change site function, especially the site name reference, can break users that only have Solar-Only Tesla inverters. Make the two change_site functions consistent and fix other issues where site_name is not provided by the Tesla API.

The change site function, especially the site name reference, can break
users that only have Solar-Only Tesla inverters. Make the two
change_site functions consistent and fix other issues where site_name is
not provided by the Tesla API.
@jasonacox jasonacox merged commit fbc2a2b into jasonacox:main Nov 26, 2024
10 checks passed
@jasonacox
Copy link
Owner

Thanks @Nexarian ! Good fix to expand use for Solar-Only owners. I've merged and tested. I'll include this in the upcoming release (v0.11.2).

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