[Area Triggers and Actions] Refactor light_action
theiding opened this issue · 2 comments
theiding commented
The existing light_action code duplicates code for brightness > 0 and brightness == 0 handling and across the dimmer, switch and color handling. Collapsing the code will make it more readable and extensible, which will be helpful for users as light_action is meant to be customized by users.
theiding commented
I have the code available and am happy to submit the PR.