If 'plaintext_login' is enabled then the username and password will be .encode()'d twice in login(). This PR removes type ambiguity of the username and password in __init__() and consolidates the login() type casts.
I'm not very familiar with the RouterOS protocol but based on my testing the encoding of the username and password doesn't differ depending on whether 'plaintext_login' is used.
If 'plaintext_login' is enabled then the username and password will be
.encode()
'd twice inlogin()
. This PR removes type ambiguity of the username and password in__init__()
and consolidates thelogin()
type casts.I'm not very familiar with the RouterOS protocol but based on my testing the encoding of the username and password doesn't differ depending on whether 'plaintext_login' is used.