mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
parent
d08b65db7d
commit
77af741099
@ -25,3 +25,8 @@ def device_reg_fixture(hass):
|
|||||||
def entity_reg_fixture(hass):
|
def entity_reg_fixture(hass):
|
||||||
"""Return an empty, loaded, registry."""
|
"""Return an empty, loaded, registry."""
|
||||||
return mock_registry(hass)
|
return mock_registry(hass)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def tplink_mock_get_source_ip(mock_get_source_ip):
|
||||||
|
"""Mock network util's async_get_source_ip."""
|
||||||
|
@ -21,7 +21,7 @@ async def test_configuring_tplink_causes_discovery(hass):
|
|||||||
await async_setup_component(hass, tplink.DOMAIN, {tplink.DOMAIN: {}})
|
await async_setup_component(hass, tplink.DOMAIN, {tplink.DOMAIN: {}})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert len(discover.mock_calls) == 1
|
assert discover.mock_calls
|
||||||
|
|
||||||
|
|
||||||
async def test_config_entry_reload(hass):
|
async def test_config_entry_reload(hass):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user