Updating Code ready for openHAB upgrade

Yes I used this guide

Thank you I will give that a go :grinning: