emilohman / homey-plejd

This App brings support for the Plejd devices.
MIT License
11 stars 5 forks source link

Refactor write loop logic and remove duplicate commands #62

Closed Coderaxx closed 7 months ago

Coderaxx commented 7 months ago

This pull request refactors the write loop logic in the PlejdApp class and removes duplicate commands. This improves the efficiency and reliability of the write loop process. This also fixes the issue where the lights wouldn't dim from flows.

emilohman commented 7 months ago

Thank you! Homey triggers both onoff and dim while dimming and I actually push the commands in reversed order. Going to use unshift instead of push to the writeQueue.