Fix withings InvalidParamsException (#47975)

* Bump withings_api to 2.3.1 (fixes #47329)

* Fix NotifyAppli calls to be compatible with withings_api 2.3.1

* Fix errors with withings_api 2.2+ using pydantic

* Bump withings_api to 2.3.2
This commit is contained in:
Ron Heft 2021-03-16 12:15:22 -04:00 committed by GitHub
parent 0097169dd3
commit bbd98e196b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 10 deletions

View file

@ -681,7 +681,7 @@ class DataManager:
)
# Determine what subscriptions need to be created.
ignored_applis = frozenset({NotifyAppli.USER})
ignored_applis = frozenset({NotifyAppli.USER, NotifyAppli.UNKNOWN})
to_add_applis = frozenset(
[
appli
@ -846,7 +846,7 @@ class DataManager:
data = serie.data
for field in GetSleepSummaryField:
raw_values[field].append(data._asdict()[field.value])
raw_values[field].append(dict(data)[field.value])
values: Dict[GetSleepSummaryField, float] = {}