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