Never had a problem with electronics in a loft space , electronics are designed for temperature variations , in most parts of UK it will survive
If you use tubing or copex do it right , most leave gaps by not using the right bends connectors etc and they just collect water inside them
Better of clipping cable direct if that's the case if you get me