Skip to content

Add yeelight nightligh support via separate light entity#26224

Merged
rytilahti merged 3 commits into
home-assistant:devfrom
zewelor:add_yeelight_nighlight_support
Sep 6, 2019
Merged

Add yeelight nightligh support via separate light entity#26224
rytilahti merged 3 commits into
home-assistant:devfrom
zewelor:add_yeelight_nighlight_support

Conversation

@zewelor
Copy link
Copy Markdown
Contributor

@zewelor zewelor commented Aug 27, 2019

Description:

Added option to create separate light entity, for better nightlight mode switch UX. By default option is off, its opt in. Redo of #22936

Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#10242

Example entry for configuration.yaml (if applicable):

yeelight:
  devices:
    192.168.1.132:
      name: Wall light bedroom
      nightlight_switch_type: light

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

@zewelor zewelor requested a review from rytilahti as a code owner August 27, 2019 05:29
@zewelor zewelor changed the title Add yheelight nightligh support via separate light entity Add yeelight nightligh support via separate light entity Aug 27, 2019
Comment thread homeassistant/components/yeelight/light.py Outdated
Comment thread homeassistant/components/yeelight/light.py Outdated
@zewelor
Copy link
Copy Markdown
Contributor Author

zewelor commented Aug 31, 2019

Thanks for code review, both comments fixed.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@rytilahti ?

Copy link
Copy Markdown
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay! This looks fine for me, but I have no way to test this. However, I trust zewelor knows what he is doing so feel free to merge as you wish.

Comment thread homeassistant/components/yeelight/light.py
@rytilahti rytilahti merged commit c847cc2 into home-assistant:dev Sep 6, 2019
@lock lock Bot locked and limited conversation to collaborators Sep 7, 2019
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.

4 participants