Skip to content

Conversation

@house2001
Copy link

…(#12)

  • Add defensive error handling in get_home_chargers() to handle missing 'get_pandas' field
  • Add validation in get_home_charger_status() to handle missing 'get_panda_status' field
  • Return empty list for home chargers when response format is unexpected
  • Raise meaningful exceptions for API errors

Fixes #12

…billow#12)

- Add defensive error handling in get_home_chargers() to handle missing 'get_pandas' field
- Add validation in get_home_charger_status() to handle missing 'get_panda_status' field
- Return empty list for home chargers when response format is unexpected
- Raise meaningful exceptions for API errors

Fixes mbillow#12
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.

Fix KeyError exceptions when API returns unexpected response formats

1 participant