Skip to content

Commit

Permalink
fix home assistant device spectrum checker. (release v2.2.6)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustJoostNL committed Nov 23, 2023
1 parent 0fa79e8 commit 1cad4a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export default async function homeAssistantCheckDeviceSpectrum(entityId: string)
// if device doesn't have supported_color_modes, return false
if(!data.attributes.supported_color_modes) return false;
// check if color modes array has one of these: rgb, hs, xy
return !!data.attributes.supported_color_modes.find((mode: string) => mode === "rgb" || mode === "hs" || mode === "xy");
return !!data.attributes.supported_color_modes.find((mode: string) => mode === "rgb" || mode === "rgbw" || mode === "hs" || mode === "xy");
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "F1MV-Lights-Integration",
"version": "2.2.5",
"version": "2.2.6",
"main": "dist-electron/main/index.js",
"description": "The best way to connect your smart home lights to MultiViewer.",
"author": "JustJoostNL",
Expand Down Expand Up @@ -78,4 +78,4 @@
"engines": {
"node": "^14.18.0 || >=16.0.0"
}
}
}

0 comments on commit 1cad4a4

Please sign in to comment.