summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorctucx <c@ctu.cx>2020-09-14 19:54:53 +0200
committerctucx <c@ctu.cx>2020-09-14 19:54:53 +0200
commit10f1659d5a1299e464141974b514a0e61a72cf5c (patch)
treec62762a898d86ddb6ea36a2cc9dadb9c5f170ec6
parent41546e24ac1b968a45eb07e6f5cd893ef9a988d7 (diff)
downloadnimtradfri-10f1659d5a1299e464141974b514a0e61a72cf5c.tar.gz
nimtradfri-10f1659d5a1299e464141974b514a0e61a72cf5c.tar.bz2
nimtradfri-10f1659d5a1299e464141974b514a0e61a72cf5c.zip
update
-rw-r--r--tradfri.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tradfri.nim b/tradfri.nim
index 0d4a9e2..deb69ca 100644
--- a/tradfri.nim
+++ b/tradfri.nim
@@ -68,7 +68,7 @@ proc parseTradfriDevice (data: JsonNode): TradfriDevice =
#determine type of bulb
if state.lightHue.isSome:
state.lightSpectrum = RGB
- if state.lightColorTemperature.isSome:
+ elif state.lightColorTemperature.isSome:
state.lightSpectrum = White
else:
state.lightSpectrum = None