Closed markprins closed 3 years ago
I agree with your statements! I have resolved them and updated the pull request.
This looks good, I will give it a quick test when I have time and then merge it, cheers.
I have merged your changes, apologies for the massive delay. Please let me know if things are broken!
It introduces a new command to retrieve the PowerState, which is usefull within Home Assistant.
Further I introduced a (global) delay for successive commands (which could be a bit better as it now waits after the command instead of checking if it had ran in the last X seconds, maybe I'll ammend the PR). This should (partially) fix issue #3.
I also did a little cleanup (removed double sock.close(), and some code cleanup)