While Tesla is trying to figure out how to properly set up my two-gateway and three-powerwall system, they created a blank Site on my account with no devices attach. In this scenario pypowerwall will crash trying to display information about sites during the site selection menu creation.
This patch just skips those if that fails. I suspect you might want another way of fixing it, but sharing this for discussion. It does work in the case I'm seeing right now (I have 2 sites at the moment, including this bogus one).
While Tesla is trying to figure out how to properly set up my two-gateway and three-powerwall system, they created a blank Site on my account with no devices attach. In this scenario pypowerwall will crash trying to display information about sites during the site selection menu creation.
This patch just skips those if that fails. I suspect you might want another way of fixing it, but sharing this for discussion. It does work in the case I'm seeing right now (I have 2 sites at the moment, including this bogus one).
Photo of Tesla app for context attached.