mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
fix types
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
from typing import TYPE_CHECKING, Any
|
||||
from typing import Any
|
||||
|
||||
from bluetooth_adapters import DiscoveredDeviceAdvertisementData
|
||||
from habluetooth import BaseHaRemoteScanner, HaBluetoothConnector
|
||||
@@ -43,10 +43,8 @@ class HomeAssistantRemoteScanner(BaseHaRemoteScanner):
|
||||
) -> None:
|
||||
"""Initialize the scanner."""
|
||||
self.hass = hass
|
||||
manager = models.MANAGER
|
||||
if TYPE_CHECKING:
|
||||
assert manager is not None
|
||||
self._storage = manager.storage
|
||||
assert models.MANAGER is not None
|
||||
self._storage = models.MANAGER.storage
|
||||
self._cancel_stop: CALLBACK_TYPE | None = None
|
||||
super().__init__(scanner_id, name, new_info_callback, connector, connectable)
|
||||
|
||||
|
Reference in New Issue
Block a user