mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix deluge DeprecationWarning (#97624)
This commit is contained in:
parent
ad0873549d
commit
4196c43416
@ -87,7 +87,7 @@ class DelugeFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||||||
username = user_input[CONF_USERNAME]
|
username = user_input[CONF_USERNAME]
|
||||||
password = user_input[CONF_PASSWORD]
|
password = user_input[CONF_PASSWORD]
|
||||||
api = DelugeRPCClient(
|
api = DelugeRPCClient(
|
||||||
host=host, port=port, username=username, password=password
|
host=host, port=port, username=username, password=password, decode_utf8=True
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
await self.hass.async_add_executor_job(api.connect)
|
await self.hass.async_add_executor_job(api.connect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user