Mock out network.util.async_get_source_ip in tests (#56339)

This commit is contained in:
Erik Montnemery 2021-09-18 09:40:58 +02:00 committed by GitHub
parent 0830100df1
commit be0819b456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -14,7 +14,7 @@ from homeassistant.setup import async_setup_component
from tests.components.logbook.test_init import MockLazyEventPartialState
async def test_humanify_homekit_changed_event(hass, hk_driver):
async def test_humanify_homekit_changed_event(hass, hk_driver, mock_get_source_ip):
"""Test humanifying HomeKit changed event."""
hass.config.components.add("recorder")
with patch("homeassistant.components.homekit.HomeKit"):