Skip to content

Commit fc64f43

Browse files
author
T Bryce Yehl
authored
Allow 'none' for colormode
1 parent 84f4be2 commit fc64f43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PoSHue.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Enum LightState {
77

88
Enum ColourMode {
99
# Defines the colour modes that can be set on the light.
10+
none
1011
xy
1112
ct
1213
hs
@@ -544,6 +545,8 @@ Class HueLight : HueFactory {
544545
$this.XY.x = $Status.state.xy[0]
545546
$this.XY.y = $Status.state.xy[1]
546547
}
548+
} else {
549+
$this.ColourMode = 'none'
547550
}
548551

549552
If ($Status.state.ct) {

0 commit comments

Comments
 (0)