-
-
Notifications
You must be signed in to change notification settings - Fork 37.7k
full RGB support for users of tradfri GW #9411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,8 +179,12 @@ def turn_on(self, **kwargs): | |
| self._api(self._light_control.set_state(True)) | ||
|
|
||
| if ATTR_RGB_COLOR in kwargs and self._light_data.hex_color is not None: | ||
| self._api(self._light.light_control.set_hex_color( | ||
| color_util.color_rgb_to_hex(*kwargs[ATTR_RGB_COLOR]))) | ||
| #~ self._api(self._light.light_control.set_hex_color( | ||
| #~ color_util.color_rgb_to_hex(*kwargs[ATTR_RGB_COLOR]))) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. block comment should start with '# ' |
||
| ## 201709013: set_hex_color() seems not to work in pytradfri api - set_rgb_color() does | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. too many leading '#' for block comment |
||
| ## -> changed function set_hex_color() to set_rgb_color() | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. too many leading '#' for block comment |
||
| ## tested w. IKEA tradfri GW and zigbee rgb PWM module (dresden elektronik FLS-PP lp) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. too many leading '#' for block comment |
||
| self._api(self._light.light_control.set_rgb_color(*kwargs[ATTR_RGB_COLOR])) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (87 > 79 characters) |
||
|
|
||
| elif ATTR_COLOR_TEMP in kwargs and \ | ||
| self._light_data.hex_color is not None and self._ok_temps: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '