If you have a written lease agreement signed by the landlord for a six (6) months lease where you never signed any other document placing the lease on a month-to-month lease, then you have a six month lease under the terms of the agreement that you signed. If the home sells during the period of your six (6) month lease, you are entitled to remain in the rental until the term ends assuming you have not breached the lease.The landlord is also required to give you reasonable notice to enter the rental for sale purposes. 24 hours is deemed usually sufficient notice for entry.Good luck.