Skip to content

Setting backup_reserve_percent response code 201 #172

@Vikings39

Description

@Vikings39

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions