Closed Djelibeybi closed 2 years ago
D'oh. I forgot to fix the tests. Will do so now.
Let's do it a bit differently anyway.
Make it so that only non lights get LABEL and lights still just get LIGHT_STATE.
Make it so that only non lights get LABEL and lights still just get COLOR.
Yep, that's what I'm doing. :) Will take me a bit longer, though. Need to add a switch to the tests too.
The task was using GetColor to get the label, but that packet is not supported by the Switch so it had no label value. Changing to GetLabel solves this problem (at the expense of an additional packet).
Fixes #80.
Signed-off-by: Avi Miller me@dje.li