mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Switch linear search to a dict lookup for ip bans (#74482)
This commit is contained in:
@@ -19,8 +19,7 @@ def patch_zeroconf_multiple_catcher():
|
||||
def prevent_io():
|
||||
"""Fixture to prevent certain I/O from happening."""
|
||||
with patch(
|
||||
"homeassistant.components.http.ban.async_load_ip_bans_config",
|
||||
return_value=[],
|
||||
"homeassistant.components.http.ban.load_yaml_config_file",
|
||||
):
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user