Only run attach and detach if the device is in the wrong mode
Only run attach and detach if the device is in the wrong mode

vathpela/fwupd,vathpela/fwupd,fwupd/fwupd,vathpela/fwupd,hughsie/fwupd,hughsie/fwupd,fwupd/fwupd,hughsie/fwupd,fwupd/fwupd,vathpela/fwupd,fwupd/fwupd,hughsie/fwupd