-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove incorrect dimming logic.
This was some of the first code I wrote for the Hue driver, and I had a misunderstanding of the `min_dimming` property returned by the API. The `min_dimming` value in the API is informative, and represents a percent of the total lumens the device is capable of outputting that you will get if you request the lowest possible brightness for the bulb (1%). We were interpreting it as a lower bound on the values to send, which is not correct. This PR removes the lower bound checks, and instead clamps all dimming commands to the range of [1,100] inclusive.
- Loading branch information
Showing
4 changed files
with
4 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters