Open georgefst opened 3 years ago
Should we just use Bools for the power fields in LightState and StatePower, treating any non-zero value as True?
Bool
power
LightState
StatePower
True
I should check the API documentation to see if there are ever any use cases for intermediate values.
OTOH, the Rust lifx-core crate recently switched the other way: from booleans to ints. I should investigate why they took that decision.
lifx-core
Should we just use
Bool
s for thepower
fields inLightState
andStatePower
, treating any non-zero value asTrue
?I should check the API documentation to see if there are ever any use cases for intermediate values.