Just configured HTML5 notifications with the Google/Firebase account, when I attempt to send a notification I get this exception:
Config:
notify:
- platform: html5
name: html5notify
gcm_api_key: !secret html5_serverkey
gcm_sender_id: !secret html5_senderid
After calling the service with the example message:
Error handling message: {‘type’: ‘call_service’, ‘domain’: ‘notify’, ‘service’: ‘html5notify’, ‘service_data’: {‘message’: ‘hello world’}, ‘id’: 14}
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/websocket_api/decorators.py”, line 17, in _handle_async_response
await func(hass, connection, msg)
File “/usr/src/app/homeassistant/components/websocket_api/commands.py”, line 148, in handle_call_service
connection.context(msg))
File “/usr/src/app/homeassistant/core.py”, line 1130, in async_call
self._execute_service(handler, service_call))
File “/usr/src/app/homeassistant/core.py”, line 1152, in _execute_service
await handler.func(service_call)
File “/usr/src/app/homeassistant/components/notify/init.py”, line 117, in async_notify_message
await notify_service.async_send_message(**kwargs)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/app/homeassistant/components/notify/html5.py”, line 451, in send_message
self._push_message(payload, **kwargs)
File “/usr/src/app/homeassistant/components/notify/html5.py”, line 498, in _push_message
json.dumps(payload), gcm_key=gcm_key, ttl=‘86400’
File “/usr/local/lib/python3.6/site-packages/pywebpush/init.py”, line 256, in send
encoded = self.encode(data)
File “/usr/local/lib/python3.6/site-packages/pywebpush/init.py”, line 184, in encode
version=content_encoding)
File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 375, in encrypt
keyid=keyid, keylabel=keylabel)
File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 113, in derive_key
keylabel=keylabel)
- List item
File “/usr/local/lib/python3.6/site-packages/http_ece/init.py”, line 78, in derive_dh
pubkey = ec.EllipticCurvePublicKey.from_encoded_point(
AttributeError: type object ‘EllipticCurvePublicKey’ has no attribute ‘from_encoded_point’