Skip to content

Commit

Permalink
colorTemperature not temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
3nth committed May 8, 2022
1 parent ca39710 commit 6e22ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ElgatoDevice extends ScryptedDeviceBase implements OnOff, Brightness, Colo
let kelvin = Math.round(1000000 * Math.pow(temperature, -1))
if(kelvin > 7000) kelvin = 7000;
if(kelvin < 2900) kelvin = 2900;
this.temperature = kelvin;
this.colorTemperature = kelvin;
}

async getRefreshFrequency() {
Expand Down

0 comments on commit 6e22ef8

Please sign in to comment.