Update http to use async_add_executor_job (#41529)
parent
822ad0ae9c
commit
3267823165
homeassistant/components/http
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue