Skip to content

Make LimitlessLED color/temperature attributes mutually exclusive#15298

Merged
amelchio merged 1 commit intohome-assistant:devfrom
amelchio:limitlessled-color-or-white
Jul 12, 2018
Merged

Make LimitlessLED color/temperature attributes mutually exclusive#15298
amelchio merged 1 commit intohome-assistant:devfrom
amelchio:limitlessled-color-or-white

Conversation

@amelchio
Copy link
Copy Markdown
Contributor

@amelchio amelchio commented Jul 4, 2018

Description:

Since a light cannot be white and colored at the same time, this PR changes LimitlessLED to only report one of the hs_color/color_temp attributes. The temperature is used when the saturation is zero.

While at it, this PR also adds the effect feature bit for white lights. I missed that in #12567.

Breaking change: LimitlessLED will no longer report hs_color/rgb_color and color_temp simultaneously.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox.

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

@amelchio amelchio force-pushed the limitlessled-color-or-white branch from e37b290 to acb83ef Compare July 5, 2018 22:15
@amelchio
Copy link
Copy Markdown
Contributor Author

I think objections would have been raised by now if this was way off so I will go ahead and merge it.

@amelchio amelchio merged commit b557c17 into home-assistant:dev Jul 12, 2018
@ghost ghost removed the in progress label Jul 12, 2018
awarecan pushed a commit to awarecan/home-assistant that referenced this pull request Jul 16, 2018
@balloob balloob mentioned this pull request Jul 20, 2018
michaeldavie pushed a commit to michaeldavie/home-assistant that referenced this pull request Jul 31, 2018
girlpunk pushed a commit to girlpunk/home-assistant that referenced this pull request Sep 4, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants