notify_list() incorrect return type
jlapenna opened this issue · comments
File "/srv/services/withings/withings.py", line 86, in _revoke_unknown_subscriptions notify_response = self.client.notify_list()
File "/env/lib/python3.7/site-packages/withings_api/__init__.py", line 251, in notify_list self.request(path=self.PATH_NOTIFY, params=params)
File "/env/lib/python3.7/site-packages/withings_api/common.py", line 515, in new_notify_list_response new_notify_list_profile(profile) for profile in data.get("profiles", ())
File "/env/lib/python3.7/site-packages/withings_api/common.py", line 515, in <genexpr> new_notify_list_profile(profile) for profile in data.get("profiles", ())
File "/env/lib/python3.7/site-packages/withings_api/common.py", line 506, in new_notify_list_profile expires=arrow_or_raise(data.get("expires")),
File "/env/lib/python3.7/site-packages/withings_api/common.py", line 448, in arrow_or_raise return enforce_type(value is not None and arrow.get(value), Arrow)
File "/env/lib/python3.7/site-packages/withings_api/common.py", line 380, in enforce_type raise UnexpectedTypeException(value, expected) withings_api.common.UnexpectedTypeException: Expected of "False" to be "<class 'arrow.arrow.Arrow'>" but was "<class 'bool'>."
Not sure if you need to do something to trigger a push to pypi.org but it hasn't made it there yet.
Weird. I published it. It's live now.