mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Prevent tplink tests from doing I/O (#34879)
This commit is contained in:
parent
b8a5597d3e
commit
5516063f46
@ -71,6 +71,8 @@ async def test_configuring_device_types(hass, name, cls, platform, count):
|
|||||||
"homeassistant.components.tplink.common.Discover.discover"
|
"homeassistant.components.tplink.common.Discover.discover"
|
||||||
) as discover, patch(
|
) as discover, patch(
|
||||||
"homeassistant.components.tplink.common.SmartDevice._query_helper"
|
"homeassistant.components.tplink.common.SmartDevice._query_helper"
|
||||||
|
), patch(
|
||||||
|
"homeassistant.components.tplink.light.async_setup_entry", return_value=True,
|
||||||
):
|
):
|
||||||
discovery_data = {
|
discovery_data = {
|
||||||
f"123.123.123.{c}": cls("123.123.123.123") for c in range(count)
|
f"123.123.123.{c}": cls("123.123.123.123") for c in range(count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user