Skip to content

Commit

Permalink
Minor code formatting
Browse files Browse the repository at this point in the history
I made some minor code formatting changes to fit with the code formatting in use throughout so far. I use the [PoshCode/PowerShellPracticeAndStyle#81 with Stroustrup else).
  • Loading branch information
lwsrbrts committed Apr 1, 2018
1 parent fc64f43 commit 5a647f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions PoSHue.ps1
Expand Up @@ -537,16 +537,18 @@ Class HueLight : HueFactory {

$this.Hue = $Status.state.hue
$this.Saturation = $Status.state.sat
if(Get-Member -inputobject $Status.state -name "colormode" -Membertype Properties) {

if (Get-Member -InputObject $Status.state -Name "colormode" -MemberType Properties) {
$this.ColourMode = $Status.state.colormode

# This is for compatibility reasons on Philips Ambient Lights
if ($Status.state.colormode -eq "xy") {
$this.XY.x = $Status.state.xy[0]
$this.XY.y = $Status.state.xy[1]
}
} else {
$this.ColourMode = 'none'
}
else {
$this.ColourMode = 'none'
}

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

0 comments on commit 5a647f0

Please sign in to comment.