OctoPrint-TuyaSmartplug icon indicating copy to clipboard operation
OctoPrint-TuyaSmartplug copied to clipboard

add function to get status and have a direct return from the function

Open giloser opened this issue 4 years ago • 0 comments

Hi,

I tried to add a script to be able to made work the Tuya plug with the PSUcontrol as it's working with the telegram plugin, but the way we got not return from the status function was a problem for me so I add a status function with a direct return.

Hope this could be useful and will not create problem.

giloser avatar Jan 15 '21 12:01 giloser