Fix incorrect zeroconf
type hint in tests (#118465)
* Fix incorrect `mock_async_zeroconf` type hint * Adjust thread * One more * Fix mock_zeroconf also * Adjust * Adjust
This commit is contained in:
parent
1352c4e427
commit
a5dc4cb1c7
9 changed files with 40 additions and 32 deletions
|
@ -297,7 +297,7 @@ async def test_homekit_setup(
|
|||
|
||||
|
||||
async def test_homekit_setup_ip_address(
|
||||
hass: HomeAssistant, hk_driver, mock_async_zeroconf: None
|
||||
hass: HomeAssistant, hk_driver, mock_async_zeroconf: MagicMock
|
||||
) -> None:
|
||||
"""Test setup with given IP address."""
|
||||
entry = MockConfigEntry(
|
||||
|
@ -344,7 +344,7 @@ async def test_homekit_setup_ip_address(
|
|||
async def test_homekit_with_single_advertise_ips(
|
||||
hass: HomeAssistant,
|
||||
hk_driver,
|
||||
mock_async_zeroconf: None,
|
||||
mock_async_zeroconf: MagicMock,
|
||||
hass_storage: dict[str, Any],
|
||||
) -> None:
|
||||
"""Test setup with a single advertise ips."""
|
||||
|
@ -379,7 +379,7 @@ async def test_homekit_with_single_advertise_ips(
|
|||
async def test_homekit_with_many_advertise_ips(
|
||||
hass: HomeAssistant,
|
||||
hk_driver,
|
||||
mock_async_zeroconf: None,
|
||||
mock_async_zeroconf: MagicMock,
|
||||
hass_storage: dict[str, Any],
|
||||
) -> None:
|
||||
"""Test setup with many advertise ips."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue