We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc64f43 commit 5a647f0Copy full SHA for 5a647f0
PoSHue.ps1
@@ -537,16 +537,18 @@ Class HueLight : HueFactory {
537
538
$this.Hue = $Status.state.hue
539
$this.Saturation = $Status.state.sat
540
- if(Get-Member -inputobject $Status.state -name "colormode" -Membertype Properties) {
+
541
+ if (Get-Member -InputObject $Status.state -Name "colormode" -MemberType Properties) {
542
$this.ColourMode = $Status.state.colormode
543
544
# This is for compatibility reasons on Philips Ambient Lights
545
if ($Status.state.colormode -eq "xy") {
546
$this.XY.x = $Status.state.xy[0]
547
$this.XY.y = $Status.state.xy[1]
548
}
- } else {
549
- $this.ColourMode = 'none'
+ }
550
+ else {
551
+ $this.ColourMode = 'none'
552
553
554
If ($Status.state.ct) {
0 commit comments