Have we established the sub panel/junction/disconnect is under the deck? By most standards, doesn't this constitute inaccessible? (ART 110 NEC).
Probably shouldn't be looking to fix this thing but rather bring it up to current standards!?
Probably shouldn't be looking to fix this thing but rather bring it up to current standards!?