Hi Aaron,
I’ve moved to a new server and am trying to add my node pros with the official integration now. I got one added, but the second one is not working. I am getting an “unknown error” in the UI and the following traceback in the log:
2020-09-20 22:08:48 INFO (MainThread) [SMB.SMBConnection] Authentication with remote machine "AIRVISUAL" for user "airvisual" will be using NTLM v2 authentication (with extended security)
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] Received SMB message "SMB_COM
_NEGOTIATE" (command:0x72 flags:0x88 flags2:0xC841 TID:0 UID:0)
2020-09-20 22:08:48 INFO (SyncWorker_3) [SMB.SMBConnection] SMB dialect negotiation succes
sful (ExtendedSecurity:True)
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] Received SMB message "SMB_COM
_SESSION_SETUP_ANDX" (command:0x73 flags:0x88 flags2:0xC803 TID:0 UID:62011)
2020-09-20 22:08:48 INFO (SyncWorker_3) [SMB.SMBConnection] Performing NTLMv2 authenticati
on (with extended security) with server challenge "b'7ff2ebeb28d9d94c'"
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] NT challenge response is "<REDACTED>'" (124 bytes)
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] LM challenge response is "<REDACTED>'" (24 bytes)
2020-09-20 22:08:48 INFO (SyncWorker_3) [SMB.SMBConnection] SMB signing deactivated. SMB m
essages will NOT be signed.
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] Received SMB message "SMB_COM
_SESSION_SETUP_ANDX" (command:0x73 flags:0x88 flags2:0xC803 TID:0 UID:62011)
2020-09-20 22:08:48 DEBUG (SyncWorker_3) [SMB.SMBConnection] SMB uid is now 62011
2020-09-20 22:08:48 INFO (SyncWorker_3) [SMB.SMBConnection] Authentication (with extended
security) successful!
2020-09-20 22:08:48 DEBUG (SyncWorker_2) [SMB.SMBConnection] Received SMB message "SMB_COM
_TREE_CONNECT_ANDX" (command:0x75 flags:0x88 flags2:0xC803 TID:36926 UID:62011)
2020-09-20 22:08:48 DEBUG (SyncWorker_2) [SMB.SMBConnection] Received SMB message "SMB_COM
_OPEN_ANDX" (command:0x2D flags:0x88 flags2:0xC803 TID:36926 UID:62011)
2020-09-20 22:08:48 DEBUG (SyncWorker_2) [SMB.SMBConnection] Received SMB message "SMB_COM
_READ_ANDX" (command:0x2E flags:0x88 flags2:0xC803 TID:36926 UID:62011)
2020-09-20 22:08:48 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 418, in star
t
resp = await task
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in i
mpl
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_midd
leware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 127, in auth_m
iddleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 129, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 14
5, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 60,
in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 106, in pos
t
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_confi
gure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 201, in _async_hand
le_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/airvisual/config_flow.py", line 14
8, in async_step_node_pro
await client.node.from_samba(
File "/usr/local/lib/python3.8/site-packages/pyairvisual/node.py", line 284, in from_sam
ba
data["current"] = await node.async_get_latest_measurements()
File "/usr/local/lib/python3.8/site-packages/pyairvisual/node.py", line 205, in async_ge
t_latest_measurements
for pollutant, value in data["measurements"][0].items()
KeyError: 0
Any ideas? Should I open an issue?