I never noticed it get hot or anything, but it was only ever on if I was in there. I did keep the immediate area clear of hay etc, just to be safe.
I think it’s as safe as anything can be really. As long as no wires show and it doesn’t get wet (the box not the solar panel), it should be fine I’d imagine