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:
parent
0097169dd3
commit
bbd98e196b
5 changed files with 8 additions and 10 deletions
|
@ -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] = {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue