Skip to content

Refactor send command method to always properly close sockets

Sockets are now properly closed, after executing a command. Had to take time to do it from scratch and test everything. Music mode still works the way it did so nothing changed for that.

This should benefit HA users or anyone using this library. Prevents from reaching the YeeLight max 4 connections limit. By making sure there are no dangling socket connections.

Edited by Johnnie Ho

Merge request reports