Skip to content
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

Remove missing supports_ap field #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bobrik
Copy link

@bobrik bobrik commented Mar 14, 2023

This fixes the following cryptic error:

[2023-03-14T21:54:26Z ERROR flume_water_exporter] deserialize response from https://api.flumewater.com/users/62219/devices?location=true: data did not match any variant of untagged enum Data at line 1 column 1470

Since any Bridge is now a strict subset of a Sensor, it needs to come later in Data enum, otherwise even Sensor is detected as a Bridge.

See also: serde-rs/serde#2157

This fixes the following cryptic error:

```
[2023-03-14T21:54:26Z ERROR flume_water_exporter] deserialize response from https://api.flumewater.com/users/62219/devices?location=true: data did not match any variant of untagged enum Data at line 1 column 1470
```

Since any `Bridge` is now a strict subset of a `Sensor`, it needs to come
later in `Data` enum, otherwise even `Sensor` is detected as a `Bridge`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant