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:
epenet 2024-05-30 21:57:09 +02:00 committed by GitHub
parent 1352c4e427
commit a5dc4cb1c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 40 additions and 32 deletions

View file

@ -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."""