Trådfri component to use new zeroconf discovery (#24041)
* Move tradfri component to use new zeroconf discovery * Will this work? * Remove prints * Correct order in generated zeroconf * Update test_init.py * Update test_init.py * Update test_init.py * Update test_init.py
This commit is contained in:
parent
4b256f3466
commit
3fef9a93cf
7 changed files with 13 additions and 9 deletions
|
@ -3,6 +3,7 @@ from unittest.mock import patch
|
|||
|
||||
from aiozeroconf import ServiceInfo, ServiceStateChange
|
||||
|
||||
from homeassistant.generated import zeroconf as zc_gen
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components import zeroconf
|
||||
|
||||
|
@ -36,5 +37,5 @@ async def test_setup(hass):
|
|||
hass, zeroconf.DOMAIN, {zeroconf.DOMAIN: {}})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert len(MockServiceBrowser.mock_calls) == 2
|
||||
assert len(mock_config_flow.mock_calls) == 2
|
||||
assert len(MockServiceBrowser.mock_calls) == len(zc_gen.SERVICE_TYPES)
|
||||
assert len(mock_config_flow.mock_calls) == len(zc_gen.SERVICE_TYPES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue