Welcome to Using English.
THANK YOU for Giving your thread a good title, using proper capitalization, and using proper punctuation.
"Hoping" describes them, when they called in the electrician. They were hoping he could do something, and in that state of hopefulness, they called him.
You can't use "to hope" to describe them as they made that call.