mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix Mikrotik encoding by setting utf8 (#38091)
This commit is contained in:
parent
2d7b9326ee
commit
17c9e31e2c
@ -390,7 +390,7 @@ def get_api(hass, entry):
|
|||||||
_LOGGER.debug("Connecting to Mikrotik hub [%s]", entry[CONF_HOST])
|
_LOGGER.debug("Connecting to Mikrotik hub [%s]", entry[CONF_HOST])
|
||||||
|
|
||||||
_login_method = (login_plain, login_token)
|
_login_method = (login_plain, login_token)
|
||||||
kwargs = {"login_methods": _login_method, "port": entry["port"]}
|
kwargs = {"login_methods": _login_method, "port": entry["port"], "encoding": "utf8"}
|
||||||
|
|
||||||
if entry[CONF_VERIFY_SSL]:
|
if entry[CONF_VERIFY_SSL]:
|
||||||
ssl_context = ssl.create_default_context()
|
ssl_context = ssl.create_default_context()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user