mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 21:40:16 +00:00
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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user