-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add setup option endpoint #897
Conversation
max_tries=2, | ||
on_backoff=relogin, | ||
) | ||
async def get_setup_option_parameter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for the fact that this throws a very generic and ugly exception on the Overkiz side, if the option does not exist...
About the helper, we haven't such thing yet. Do yourself have any otherwise helpers ideas? |
@tetienne actually, in previous PRs I added 2 utils (https://github.com/iMicknl/python-overkiz-api/blob/main/pyoverkiz/utils.py) which are some kind of helpers 😁. |
First implementation of Somfy-Developer/Somfy-TaHoma-Developer-Mode#90 (comment)
{'errorCode': 'UNSPECIFIED_ERROR', 'error': 'Internal Error'}
when option does not exist. If parameter does not exist, it will return None.