Skip to content

Commit

Permalink
v6.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Jul 8, 2021
1 parent 21dc2ae commit 94ac3a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

# v6.0.13 - 2021-07-08

## Bugfixes
- Fixed an issue where changing color of smarthome lightbulbs showed wrong color/saturation

# v6.0.12 - 2021-07-08

## Notable Changes
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-fritz-platform",
"version": "6.0.12",
"version": "6.0.13",
"description": "Homebridge Plugin to control FritzBox router, smarthome devices and more.",
"main": "index.js",
"funding": [
Expand Down
3 changes: 1 addition & 2 deletions src/accessories/smarthome/smarthome.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ exports.colortemp2api = (param) => {
};

exports.getValidColor = (hue, sat) => {
hue = Math.round(hue);
sat = Math.round(sat);
sat = Math.round(sat * 2.55);

let hues = [35, 52, 92, 120, 160, 195, 212, 225, 266, 296, 335, 358];
let sats = [
Expand Down

0 comments on commit 94ac3a9

Please sign in to comment.