External vent cover extending out and with electrical wiring - is this an issue?
Hello, we recently moved into a new house and wanted to know if this is up to code For our duct work for bathroom ventilation. See photo here: 
Basically, we have a hole in the side of the wall, which is where the basement bathroom exhaust fan vents out to the outside. However, the vent cover is not flush against the siding of the house, and therefore not screwed in and caulked/sealed. It extends out a fair distance (20-30cm), leaving a big open hole resulting in water infiltration when ice melts etc.
Qestion is whether we can just put a cover (flush Against the siding) over the top and sides of the vent cover and duct that extends out , or if we need to push the duct work in further such that the vent cover sits flush against the siding (i.e. Are there any violations to building codes if we simply cover it up). The reason for just covering it up is because having the vent cover sit flush against siding is not simple, because of the below issue:
the power supply (black wire) for the outdoor unit of the mini split heat pump goes through the same hole (but NOT through the duct work). Is this OK or a cause for concern because it violates certain code since it runs through the same hold as the duct?
The house inspector unfortunately obviously missed this uncovered hole in the wall (it is hidden below the planks of wood that make up the deck) and previous owner didn’t disclose there was an open hole in the wall of the house… Wondering if there is any recourse.
Thanks!

Basically, we have a hole in the side of the wall, which is where the basement bathroom exhaust fan vents out to the outside. However, the vent cover is not flush against the siding of the house, and therefore not screwed in and caulked/sealed. It extends out a fair distance (20-30cm), leaving a big open hole resulting in water infiltration when ice melts etc.
Qestion is whether we can just put a cover (flush Against the siding) over the top and sides of the vent cover and duct that extends out , or if we need to push the duct work in further such that the vent cover sits flush against the siding (i.e. Are there any violations to building codes if we simply cover it up). The reason for just covering it up is because having the vent cover sit flush against siding is not simple, because of the below issue:
the power supply (black wire) for the outdoor unit of the mini split heat pump goes through the same hole (but NOT through the duct work). Is this OK or a cause for concern because it violates certain code since it runs through the same hold as the duct?
The house inspector unfortunately obviously missed this uncovered hole in the wall (it is hidden below the planks of wood that make up the deck) and previous owner didn’t disclose there was an open hole in the wall of the house… Wondering if there is any recourse.
Thanks!