Skip to content
Snippets Groups Projects
Commit 9066609d authored by Alexei Chetroi's avatar Alexei Chetroi Committed by David F. Mulcahey
Browse files

Refactor async_turn_on() for ZHA Light. (#21156)

* Refactor async_turn_on() for ZHA Light.

Use "move_to_level_with_on_off" if brightness or transition attributes
are present in the service call data, otherwise issue "On" Zigbee
command.
Allow brightness of 0 for service call -- effectively turning the light
off.
Send color commands only after the light was turned on.

* Fix zha.light tests.
parent 27e6c666
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment