RPi Python Buster re-connect to App

So now I have updated my original code with int(value[0]) replacing int(value) - and it works!

Thanks for your help
Regards
Bruce