Add support for Soma Tilt devices (#49734)
This commit is contained in:
parent
8b99adc1dc
commit
a9785f1b41
7 changed files with 213 additions and 78 deletions
6
homeassistant/components/soma/utils.py
Normal file
6
homeassistant/components/soma/utils.py
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue