-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add transition_time to more methods #120
Add transition_time to more methods #120
Conversation
pytradfri/device.py
Outdated
try: | ||
color = COLORS[colorname.lower().replace(" ", "_")] | ||
return self.set_hex_color(color, index=index) | ||
return self.set_hex_color(color, index=index, transition_time=transition_time) |
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.
line too long (90 > 79 characters)
pytradfri/device.py
Outdated
|
||
def set_predefined_color(self, colorname, *, index=0): | ||
def set_predefined_color(self, colorname, *, index=0, transition_time=None): |
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.
line too long (80 > 79 characters)
pytradfri/device.py
Outdated
|
||
def set_hsb(self, hue, saturation, brightness, *, index=0): | ||
def set_hsb(self, hue, saturation, brightness, *, index=0, transition_time=None): |
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.
line too long (85 > 79 characters)
Added to and tested for the following methods: - set_color_temp - set_hex_color - set_xy_color - set_hsb - set_predefined_color
2cf3bc9
to
a345471
Compare
Thanks! 🐊 Are you planning on making the upstream changes in HA? |
Thank you @jurriaan! I have pushed this as 5.1.0 to pypi now. |
Added to and tested for the following methods: