Skip to content

Commit

Permalink
Adds new light ReadyToInstall variant - this is preventing deserializ…
Browse files Browse the repository at this point in the history
…aiton.

I'm unable to deserialize due to this state which is missing for the SoftwareUpdateState enum.

Relevant error:

```
Failed to get lights: Failed to parse json content: unknown variant `readytoinstall`, expected `noupdates` or `notupdatable`
```

#1
deckarep authored Jun 28, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ffcfe52 commit d46e986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/resource/light.rs
Original file line number Diff line number Diff line change
@@ -105,6 +105,8 @@ pub enum SoftwareUpdateState {
NoUpdates,
/// Device cannot be updated.
NotUpdatable,
/// Device is ready to install new updates.
ReadyToInstall,
// TODO: Add missing variants for states (https://github.com/yuqio/huelib-rs/issues/1)
}

0 comments on commit d46e986

Please sign in to comment.