Update http to use async_add_executor_job ()

pull/41535/head
J. Nick Koston 2020-10-09 02:29:07 -05:00 committed by GitHub
parent 822ad0ae9c
commit 3267823165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
homeassistant/components/http

View File

@ -137,7 +137,7 @@ async def process_wrong_login(request):
new_ban = IpBan(remote_addr)
request.app[KEY_BANNED_IPS].append(new_ban)
await hass.async_add_job(
await hass.async_add_executor_job(
update_ip_bans_config, hass.config.path(IP_BANS_FILE), new_ban
)