Fix sense doing I/O in the event loop (#35523)

When the websocket is created `SSLContext.load_default_certs` is called
each time which opens up the system default ssl certs file and reads it in

Normally this goes unnoticed, however since there are frequent connects
and disconnects of the websocket it was noticeable.
This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-05-12 10:48:51 -05:00
1 parent 1bb01dccf5
commit 68179e2672
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
"domain": "sense",
"name": "Sense",
"documentation": "https://www.home-assistant.io/integrations/sense",
"requirements": ["sense_energy==0.7.1"],
"requirements": ["sense_energy==0.7.2"],
"codeowners": ["@kbickar"],
"config_flow": true
}
+1 -1
View File
@@ -1907,7 +1907,7 @@ sendgrid==6.2.1
sense-hat==2.2.0
# homeassistant.components.sense
sense_energy==0.7.1
sense_energy==0.7.2
# homeassistant.components.sentry
sentry-sdk==0.13.5
+1 -1
View File
@@ -768,7 +768,7 @@ samsungctl[websocket]==0.7.1
samsungtvws[websocket]==1.4.0
# homeassistant.components.sense
sense_energy==0.7.1
sense_energy==0.7.2
# homeassistant.components.sentry
sentry-sdk==0.13.5