From d46e986750fc4d7af3649d9898097d210a1fdf48 Mon Sep 17 00:00:00 2001 From: Ralph Caraveo III Date: Sun, 28 Jun 2020 11:45:58 -0700 Subject: [PATCH] Adds new light ReadyToInstall variant - this is preventing deserializaiton. 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` ``` https://github.com/yuqio/huelib-rs/issues/1 --- src/resource/light.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resource/light.rs b/src/resource/light.rs index fd89178..d2f827b 100644 --- a/src/resource/light.rs +++ b/src/resource/light.rs @@ -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) }