Hot baths to induce labor?

k🌻
I always thought hot baths during pregnancy where considered dangerous but my midwife said it can help induce labor? Has anyone else heard of this or tryed it?