Each update was creating a new ssl context which was
doing blocking i/o to load the default ssl certs
homeassistant/components/sense/__init__.py, line 144: await gateway.update_realtime() was calling SSLContext.load_default_certs from when the websocket is created. Normally this goes unnoticed, however since there are frequent connects and disconnects of the websocket it was noticeable.
Fixes I/O in the event loop
Each update was creating a new ssl context which was doing blocking i/o to load the default ssl certs
homeassistant/components/sense/__init__.py, line 144: await gateway.update_realtime()
was callingSSLContext.load_default_certs
from when the websocket is created. Normally this goes unnoticed, however since there are frequent connects and disconnects of the websocket it was noticeable.