Skip to content

Commit

Permalink
Allow 'none' for colormode
Browse files Browse the repository at this point in the history
  • Loading branch information
T Bryce Yehl committed Mar 31, 2018
1 parent 84f4be2 commit fc64f43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PoSHue.ps1
Expand Up @@ -7,6 +7,7 @@ Enum LightState {

Enum ColourMode {
# Defines the colour modes that can be set on the light.
none
xy
ct
hs
Expand Down Expand Up @@ -544,6 +545,8 @@ Class HueLight : HueFactory {
$this.XY.x = $Status.state.xy[0]
$this.XY.y = $Status.state.xy[1]
}
} else {
$this.ColourMode = 'none'
}

If ($Status.state.ct) {
Expand Down

0 comments on commit fc64f43

Please sign in to comment.