Since 19th July 2025 I've been seeing an error when setting the Powerwall backup reserve. The operation seems to make the correct change on the Powerwall but there is an error reported from the code:
File "/usr/local/lib/python3.13/site-packages/teslapy/init.py", line 839, in set_backup_reserve_percent
return self.command('BACKUP_RESERVE',
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
backup_reserve_percent=int(percent))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/teslapy/init.py", line 803, in command
if response['code'] == 201:
~~~~~~~~^^^^^^^^
KeyError: 'code'
Since 19th July 2025 I've been seeing an error when setting the Powerwall backup reserve. The operation seems to make the correct change on the Powerwall but there is an error reported from the code:
File "/usr/local/lib/python3.13/site-packages/teslapy/init.py", line 839, in set_backup_reserve_percent
return self.command('BACKUP_RESERVE',
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
backup_reserve_percent=int(percent))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/teslapy/init.py", line 803, in command
if response['code'] == 201:
~~~~~~~~^^^^^^^^
KeyError: 'code'