Light: Invert set_color_temperature range check#126
Light: Invert set_color_temperature range check#126forderud wants to merge 2 commits intoLeggin:mainfrom
Conversation
|
Wow crazy this didn't come up earlier, thank you! |
|
No wait a minute, at least my lamps all have as min 4000 and as max 2022 |
This was very odd. I've so far only purchased an Ikea KAJPLATS E27 WS G60 lamp that reports Could it be an idea to add logic for swapping min/max values to ensure that max is always greater than min? I'm thinking something along these lines... |
Fixes Leggin#125 by changing the logic, so that it fails if the temperature is _outside_ the valid range instead of _inside_.
0211a74 to
e3aa5ad
Compare
|
I've now updated I can also add |
Fixes #125 by changing the logic, so that it fails if the temperature is outside the valid range instead of inside.