mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-06-24 10:56:30 +00:00
Add support for undocument ha version inside wesocket (#333)
This commit is contained in:
parent
f77e176a6e
commit
eb6c753514
@ -133,9 +133,15 @@ class APIProxy(CoreSysAttributes):
|
|||||||
await server.prepare(request)
|
await server.prepare(request)
|
||||||
|
|
||||||
# handle authentication
|
# handle authentication
|
||||||
await server.send_json({'type': 'auth_required'})
|
await server.send_json({
|
||||||
|
'type': 'auth_required',
|
||||||
|
'ha_version': self._homeassistant.version,
|
||||||
|
})
|
||||||
await server.receive_json() # get internal token
|
await server.receive_json() # get internal token
|
||||||
await server.send_json({'type': 'auth_ok'})
|
await server.send_json({
|
||||||
|
'type': 'auth_ok',
|
||||||
|
'ha_version': self._homeassistant.version,
|
||||||
|
})
|
||||||
|
|
||||||
# init connection to hass
|
# init connection to hass
|
||||||
client = await self._websocket_client()
|
client = await self._websocket_client()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user