mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Remove type ignore from bluetooth (#79146)
This commit is contained in:
parent
65788fad57
commit
4a432db611
@ -111,7 +111,7 @@ def _prefer_previous_adv(
|
|||||||
|
|
||||||
|
|
||||||
def _dispatch_bleak_callback(
|
def _dispatch_bleak_callback(
|
||||||
callback: AdvertisementDataCallback,
|
callback: AdvertisementDataCallback | None,
|
||||||
filters: dict[str, set[str]],
|
filters: dict[str, set[str]],
|
||||||
device: BLEDevice,
|
device: BLEDevice,
|
||||||
advertisement_data: AdvertisementData,
|
advertisement_data: AdvertisementData,
|
||||||
@ -119,7 +119,7 @@ def _dispatch_bleak_callback(
|
|||||||
"""Dispatch the callback."""
|
"""Dispatch the callback."""
|
||||||
if not callback:
|
if not callback:
|
||||||
# Callback destroyed right before being called, ignore
|
# Callback destroyed right before being called, ignore
|
||||||
return # type: ignore[unreachable] # pragma: no cover
|
return # pragma: no cover
|
||||||
|
|
||||||
if (uuids := filters.get(FILTER_UUIDS)) and not uuids.intersection(
|
if (uuids := filters.get(FILTER_UUIDS)) and not uuids.intersection(
|
||||||
advertisement_data.service_uuids
|
advertisement_data.service_uuids
|
||||||
|
Loading…
x
Reference in New Issue
Block a user