Prevent tplink tests from doing I/O (#34879)

pull/34964/head
J. Nick Koston 2020-04-29 15:44:40 -05:00 committed by GitHub
parent b8a5597d3e
commit 5516063f46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ async def test_configuring_device_types(hass, name, cls, platform, count):
"homeassistant.components.tplink.common.Discover.discover"
) as discover, patch(
"homeassistant.components.tplink.common.SmartDevice._query_helper"
), patch(
"homeassistant.components.tplink.light.async_setup_entry", return_value=True,
):
discovery_data = {
f"123.123.123.{c}": cls("123.123.123.123") for c in range(count)