[boobill][edf] OTP password asked too early
There is an issue with the EDF backend.
When adding the backend, boobill asks for a OTP. However, at this stage, no connection has been made to edf.fr and so no OTP is and can be available. The OTP will only be available upon the first boobill ls
, when a connection is actually made to edf.fr and an SMS is sent. But at this stage it is too late, because the OTP has already been added and cannot be changed.
A workaround is to set a dummy password when adding the backend. And to put a breakpoint at the start of browser.py::do_login
. Then, you can manually set the OTP just received in self.config['otp']
.