Files
project-work/home-assistant/homeassistant/components/soma/utils.py
2026-11-19 15:15:32 -05:00

7 lines
256 B
Python

"""Soma helpers functions."""
def is_api_response_success(api_response: dict) -> bool:
"""Check if the response returned from the Connect API is a success or not."""
return "result" in api_response and api_response["result"].lower() == "success"