From 065e7f21f856a3006c3390485f2c1833663ad14d Mon Sep 17 00:00:00 2001 From: LordTocs Date: Mon, 4 Dec 2023 15:23:38 -0500 Subject: [PATCH] Handle unknown LIFX devices --- packages/castmate/src/main/plugins/lifx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/castmate/src/main/plugins/lifx.js b/packages/castmate/src/main/plugins/lifx.js index 5e6f5688..f383127f 100644 --- a/packages/castmate/src/main/plugins/lifx.js +++ b/packages/castmate/src/main/plugins/lifx.js @@ -17,7 +17,7 @@ class LIFXBulb extends Light { name: initialState.label, plugin: "lifx", type: "bulb", - rgb: { available: hardwareInfo.productFeatures.color }, + rgb: { available: hardwareInfo.productFeatures?.color ?? true }, kelvin: { available: true, min: 2500, max: 9000 }, dimming: { available: true }, }