Iris sensor -turn of door sensor but keep temp sensor

I want to use use the iris door sensor as a temp sensor. Is there a way to disable the sensor but keep the temp sensor.

Don’t install the magnet. It will just read as open and only update temp & battery changes.