Some-time wireless installer here, I bring a snippet of anecdata.
A recent client had the full Unifi experience for an outdoor network, including 3x EdgeSwitch XP (formerly known as ToughSwitch) in a single IP65-rated, largely airtight enclosure.
The network would go offline on summer afternoons. It was overheating, those models run hot and are not recommended for low ventilation areas, but they weren't convinced.
I fitted a thermometer, went back three days later and checked the logs. The temperature peaked at 143 Celsius.