Error (Failed to retrieve Access Token) with Daikin Residential

Hi every body,
I am new on the forum. I cannot resolve a connection issue with HACS Daikin Residential by @rospogrigio . I parsed all the topics but cannot find the answer.
Here is the full log (with debug) :
(I precise my devices are BRP069C4x with Onecta account)

2023-11-25 10:12:30.129 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] Initialing Daikin Residential API...
2023-11-25 10:12:30.138 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Daikin Residential API initialized.
2023-11-25 10:12:30.140 INFO (MainThread) [custom_components.daikin_residential.daikin_api] Retrieving new TokenSet...
2023-11-25 10:12:30.505 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] STATE: _mnXN**********************************
2023-11-25 10:12:30.952 DEBUG (MainThread) [custom_components.daikin_residential.daikin_api] SAMLCONTEXT: eu1_96462683***********************************
2023-11-25 10:12:30.953 ERROR (MainThread) [custom_components.daikin_residential.config_flow] Failed to retrieve Access Token: ('Error trying to extract API version: %s', TypeError('get() takes 1 positional argument but 2 were given'))

Any idea ?
Tks,
John

I reply to myself.
As I got no help, I tried to dig a bit with some debug.
The problem came from the miss of params token in the requests.get() function in
daikin_api.py. Should be :

requests.get, "https://cdns.gigya.com/js/gigya.js", params={"apiKey": API_KEY}
(line 309)
params={"apiKey": API_KEY, "sdk": "js_latest", "format": "json"},
(line 326)

@raspogrio Strange to get this error : previous version of Python ? Requests module ?

1 Like