Fix deluge DeprecationWarning (#97624)

This commit is contained in:
Marc Mueller 2023-08-03 09:12:08 +02:00 committed by GitHub
parent ad0873549d
commit 4196c43416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@ class DelugeFlowHandler(ConfigFlow, domain=DOMAIN):
username = user_input[CONF_USERNAME]
password = user_input[CONF_PASSWORD]
api = DelugeRPCClient(
host=host, port=port, username=username, password=password
host=host, port=port, username=username, password=password, decode_utf8=True
)
try:
await self.hass.async_add_executor_job(api.connect)