Add support for Soma Tilt devices (#49734)

This commit is contained in:
sebfortier2288 2022-01-20 15:21:54 -05:00 committed by GitHub
parent 8b99adc1dc
commit a9785f1b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 213 additions and 78 deletions

View file

@ -0,0 +1,6 @@
"""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"