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
4 changed files with 9 additions and 3 deletions

View File

@@ -238,7 +238,7 @@ def test_density_to_air_quality():
assert density_to_air_quality(300) == 5
async def test_show_setup_msg(hass, hk_driver):
async def test_show_setup_msg(hass, hk_driver, mock_get_source_ip):
"""Test show setup message as persistence notification."""
pincode = b"123-45-678"