core: Sense and/or SSL component broken in 0.97.1

Home Assistant release with the issue: 0.97.1

Last working Home Assistant release (if known): 0.96.5

Operating environment (Hass.io/Docker/Windows/etc.): Docker

Component/platform: sense

Description of problem: Sense component seems to load, as all the entities show up OK. However, states are not being populated.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

sense:
   email: !secret email
   password: !secret sense_password
   timeout: 35

Traceback (if applicable):

2019-08-10 06:29:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/components/sense/__init__.py", line 64, in async_sense_update
    await hass.data[SENSE_DATA].update_realtime()
  File "/usr/local/lib/python3.7/site-packages/sense_energy/asyncsenseable.py", line 41, in update_realtime
    await self.async_realtime_stream(single=True)
  File "/usr/local/lib/python3.7/site-packages/sense_energy/asyncsenseable.py", line 47, in async_realtime_stream
    async with websockets.connect(url) as ws:
  File "/usr/local/lib/python3.7/site-packages/websockets/py35/client.py", line 2, in __aenter__
    return await self
  File "/usr/local/lib/python3.7/site-packages/websockets/py35/client.py", line 12, in __await_impl__
    transport, protocol = await self._creating_connection
  File "uvloop/loop.pyx", line 1945, in create_connection
  File "uvloop/loop.pyx", line 1942, in uvloop.loop.Loop.create_connection
  File "uvloop/sslproto.pyx", line 500, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 484, in uvloop.loop.SSLProtocol._do_handshake
  File "/usr/local/lib/python3.7/ssl.py", line 774, in do_handshake
    self._sslobj.do_handshake()

Additional information: I’m also getting new ssl Errors, that appear to be related:

ssl.SSLError: [SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:1076)
2019-08-10 06:29:48 ERROR (MainThread) [homeassistant.core] Error doing job: SSL handshake failed
Traceback (most recent call last):
  File "uvloop/sslproto.pyx", line 500, in uvloop.loop.SSLProtocol._on_handshake_complete
  File "uvloop/sslproto.pyx", line 484, in uvloop.loop.SSLProtocol._do_handshake
  File "/usr/local/lib/python3.7/ssl.py", line 774, in do_handshake
    self._sslobj.do_handshake()

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

There weren’t any changes in the sense component or library since 0.95 - I wonder if something else SSL related changed in HA?

This appears fixed in 0.98.1. It is working fine with the new docker base image.

The version of openssl appears to have changed between the dockerbuild for 0.96 and 0.97

96.5 is using openssl 1.1.0k 28 May 2019

97.x is using openssl 1.1.1c 28 May 2019