Sony Bravia integration not working

I’m trying to integrate my Sony Bravia TV with the reintroduced integration trough the UI. I’m getting this error: Unknown error occurred
The IP address of the TV is correct, the TV is turned on and if I try to connect with the android APP it works fine. I have looked at the compatibility list and my model is compatible.

And this output at the log:

Logger: aiohttp.server
Source: components/braviatv/config_flow.py:133
First occurred: 21:32:16 (28 occurrences)
Last logged: 21:57:08

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 54, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 93, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 148, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/braviatv/config_flow.py", line 105, in async_step_user
    return await self.async_step_authorize()
  File "/usr/src/homeassistant/homeassistant/components/braviatv/config_flow.py", line 133, in async_step_authorize
    self.braviarc.connect, "0000", CLIENTID_PREFIX, NICKNAME,
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.7/site-packages/bravia_tv/braviarc.py", line 63, in connect
    resp = self.bravia_req_json('accessControl', authorization, headers=headers)
  File "/usr/local/lib/python3.7/site-packages/bravia_tv/braviarc.py", line 137, in bravia_req_json
    return_value = json.loads(response.text)
  File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Same problem here. KDL-46EX720. It’s ancient however it should work according to the sideview list.

Traceback (most recent call last):
>   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
>     resp = await task
>   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
>     resp = await handler(request)
>   File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
>     return await handler(request)
>   File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
>     return await handler(request)
>   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
>     return await handler(request)
>   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_middleware
>     return await handler(request)
>   File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 125, in handle
>     result = await result
>   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post
>     return await super().post(request, flow_id)
>   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 54, in wrapper
>     result = await method(view, request, *args, **kwargs)
>   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 93, in post
>     result = await self._flow_mgr.async_configure(flow_id, data)
>   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 148, in async_configure
>     result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
>   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
>     result: Dict = await getattr(flow, method)(user_input)
>   File "/usr/src/homeassistant/homeassistant/components/braviatv/config_flow.py", line 105, in async_step_user
>     return await self.async_step_authorize()
>   File "/usr/src/homeassistant/homeassistant/components/braviatv/config_flow.py", line 133, in async_step_authorize
>     self.braviarc.connect, "0000", CLIENTID_PREFIX, NICKNAME,
>   File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
>     result = self.fn(*self.args, **self.kwargs)
>   File "/usr/local/lib/python3.7/site-packages/bravia_tv/braviarc.py", line 63, in connect
>     resp = self.bravia_req_json('accessControl', authorization, headers=headers)
>   File "/usr/local/lib/python3.7/site-packages/bravia_tv/braviarc.py", line 137, in bravia_req_json
>     return_value = json.loads(response.text)
>   File "/usr/local/lib/python3.7/json/__init__.py", line 348, in loads
>     return _default_decoder.decode(s)
>   File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
>     raise JSONDecodeError("Expecting value", s, err.value) from None
> json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sideview uses a very different API and compatibility for it does not mean compatibility for this integration. It appears that only a 2013+ models support rest API.