Make code compliant with the new rpi_lib relay module