Landlord enters home at 2am

Hello, I live in the Dallas area and just woke up to my wife in hysterics about someone in our home. They left before I could get up to check but when we looked at the camera footage outside it was our landlord. She had came here, entered our home at 2am while we were still asleep, walked around for a few minutes, and left. Is this legal?

Location: DFW area

Edit; adding what the lease says verbatim

* Access: Before accessing the Property, Landlord or anyone authorized by Landlord will attempt to first contact Tenant, but may enter the Property at reasonable times without notice to make repairs or to show the Property to prospective tenants or buyers, inspectors, fire marshals, lenders, appraisers, or insurance agents. Additionally Landlord or anyone authorized by Landlord may peacefully enter the Property at reasonable times without first attempting to contact Tenant and without notice to: (1) survey or review the Property's condition and take photographs to document the condition; (2) make emergency repairs; (3) exercise a contractual or statutory lien; (4) leave written notices; or (5) seize nonexempt property if Tenant is in default.

Author: -Detective-Who