Home Assistant Unofficial Reference 2024.12.1
utils.py
Go to the documentation of this file.
1 """Soma helpers functions."""
2 
3 
4 def is_api_response_success(api_response: dict) -> bool:
5  """Check if the response returned from the Connect API is a success or not."""
6  return "result" in api_response and api_response["result"].lower() == "success"
bool is_api_response_success(dict api_response)
Definition: utils.py:4