Update http to use async_add_executor_job (#41529)
This commit is contained in:
1 parent
822ad0ae9c
commit
3267823165
1 file changed
+1
-1
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user