Prevent tplink from opening sockets in tests (#57058)

Supports #55516
This commit is contained in:
J. Nick Koston 2021-10-04 08:25:09 -10:00 committed by GitHub
parent d08b65db7d
commit 77af741099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -21,7 +21,7 @@ async def test_configuring_tplink_causes_discovery(hass):
await async_setup_component(hass, tplink.DOMAIN, {tplink.DOMAIN: {}})
await hass.async_block_till_done()
assert len(discover.mock_calls) == 1
assert discover.mock_calls
async def test_config_entry_reload(hass):