File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -537,16 +537,18 @@ Class HueLight : HueFactory {
537
537
538
538
$this.Hue = $Status.state.hue
539
539
$this.Saturation = $Status.state.sat
540
- if (Get-Member - inputobject $Status.state - name " colormode" - Membertype Properties) {
540
+
541
+ if (Get-Member - InputObject $Status.state - Name " colormode" - MemberType Properties) {
541
542
$this.ColourMode = $Status.state.colormode
542
543
543
544
# This is for compatibility reasons on Philips Ambient Lights
544
545
if ($Status.state.colormode -eq " xy" ) {
545
546
$this.XY.x = $Status.state.xy [0 ]
546
547
$this.XY.y = $Status.state.xy [1 ]
547
548
}
548
- } else {
549
- $this.ColourMode = ' none'
549
+ }
550
+ else {
551
+ $this.ColourMode = ' none'
550
552
}
551
553
552
554
If ($Status.state.ct ) {
You can’t perform that action at this time.
0 commit comments