The state will likely put a lien on the house while the resident is living and attempt to recover the property after the resident has passed away.
Medicaid will not count a nursing home resident's home as an asset when determining eligibility for Medicaid as long as the resident intends to return home (in some states, the nursing home resident must prove a likelihood of returning home)...
Learn more here.