1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add missing hass type hint in component tests (b) (#124065)

This commit is contained in:
epenet
2024-08-18 15:39:26 +02:00
committed by GitHub
parent 1afed8ae15
commit 489ceab4b5
4 changed files with 20 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ from homeassistant.components.bluetooth import (
HaBluetoothConnector,
HomeAssistantBluetoothManager,
)
from homeassistant.core import HomeAssistant
from homeassistant.core import CALLBACK_TYPE, HomeAssistant
from . import _get_manager, generate_advertisement_data, generate_ble_device
@@ -164,7 +164,11 @@ def mock_platform_client_that_raises_on_connect_fixture():
yield
def _generate_scanners_with_fake_devices(hass):
def _generate_scanners_with_fake_devices(
hass: HomeAssistant,
) -> tuple[
dict[str, tuple[BLEDevice, AdvertisementData]], CALLBACK_TYPE, CALLBACK_TYPE
]:
"""Generate scanners with fake devices."""
manager = _get_manager()
hci0_device_advs = {}