Skip to content
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

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

jurriaan
Copy link
Contributor

Added to and tested for the following methods:

  • set_color_temp
  • set_hex_color
  • set_xy_color
  • set_hsb
  • set_predefined_color

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)

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)


def set_predefined_color(self, colorname, *, index=0):
def set_predefined_color(self, colorname, *, index=0, transition_time=None):

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)


def set_hsb(self, hue, saturation, brightness, *, index=0):
def set_hsb(self, hue, saturation, brightness, *, index=0, transition_time=None):

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
@jurriaan jurriaan force-pushed the transition-all-the-things branch from 2cf3bc9 to a345471 Compare November 23, 2017 20:51
@coveralls
Copy link

coveralls commented Nov 23, 2017

Coverage Status

Coverage decreased (-0.6%) to 61.341% when pulling a345471 on jurriaan:transition-all-the-things into 26f66df on ggravlingen:master.

@lwis lwis merged commit fd4add4 into home-assistant-libs:master Nov 24, 2017
@lwis
Copy link
Collaborator

lwis commented Nov 24, 2017

Thanks! 🐊

Are you planning on making the upstream changes in HA?

@jurriaan jurriaan deleted the transition-all-the-things branch November 24, 2017 08:37
@ggravlingen
Copy link
Member

Thank you @jurriaan! I have pushed this as 5.1.0 to pypi now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants