joostlek / python-withings

Async python library for connecting with Withings
MIT License
1 stars 1 forks source link

16 is an unsupported value for <enum 'DeviceModel'> #437

Open code-in-progress-ha opened 1 week ago

code-in-progress-ha commented 1 week ago

Problem/Motivation

I have 2 Sleep Mats and 1 Withings Body Scale. After a token expiration last night, both sleep mats lost the "In Bed" binary sensor and are now not updating.

Logger: aiowithings
Source: components/withings/coordinator.py:307
First occurred: November 10, 2024 at 19:29:49 (24 occurrences)
Last logged: 14:55:07

16 is an unsupported value for <enum 'DeviceModel'>, please report this at https://github.com/joostlek/python-withings/issues

Expected behavior

The sensors to be there and the devices to update.

Actual behavior

Some sensors are not there and the devices don't update.

Steps to reproduce

Create a Withings integration, log in and authenticate and then look at the device info.

Proposed changes