Unable to configure the HA luci integration due to openwrt_luci_rpc.exceptions.PageNotFoundError being raised during init.
After debugging and stepping through, it seems that this error starts when _refresh_token() is called.
Not sure if its to do with something going on with requests.Sessions() or not but I can confirm that the OpenWRT install has luci-mod-rpc installed and it does work if I use a 3rd party API tool to execute the same POST request.
OpenWRT version is "r23003-e2f9fa4204" (no stable for my device, only snapshot).
It seems like this issue has been reported in the hass repo too (including the same error that I get):
Description
Unable to configure the HA luci integration due to
openwrt_luci_rpc.exceptions.PageNotFoundError
being raised during init.After debugging and stepping through, it seems that this error starts when
_refresh_token()
is called.Not sure if its to do with something going on with
requests.Sessions()
or not but I can confirm that the OpenWRT install hasluci-mod-rpc
installed and it does work if I use a 3rd party API tool to execute the same POST request.OpenWRT version is "r23003-e2f9fa4204" (no stable for my device, only snapshot).
It seems like this issue has been reported in the hass repo too (including the same error that I get):
https://github.com/home-assistant/core/issues/87363
What I Did