Had to start a new thread due to rogue char in the thread.
Depends on the foam. How flammable is what you have. It certainly melts and gives of nasty fumes. I'd not say its conductive, but of course could easily get damp in it, Some have fungicide additives,. I think keeping a freeflow of air wherever the electrics are is good and after all you might want to get at it later on without digging foam out of the little nooks and crannies. Tell you what it seems to go on expanding after you might think its dry. We had some windows replaced and the used it and plastered over the top, about 4 months later the foam pushed off a chunk of te plaster, with a big bubble. Brian