From 4a432db611fcb3219515cabfe75a2e161cf42c5d Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 28 Sep 2022 10:29:55 +0200 Subject: [PATCH] Remove type ignore from bluetooth (#79146) --- homeassistant/components/bluetooth/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/bluetooth/manager.py b/homeassistant/components/bluetooth/manager.py index 4229b285939..37c24423231 100644 --- a/homeassistant/components/bluetooth/manager.py +++ b/homeassistant/components/bluetooth/manager.py @@ -111,7 +111,7 @@ def _prefer_previous_adv( def _dispatch_bleak_callback( - callback: AdvertisementDataCallback, + callback: AdvertisementDataCallback | None, filters: dict[str, set[str]], device: BLEDevice, advertisement_data: AdvertisementData, @@ -119,7 +119,7 @@ def _dispatch_bleak_callback( """Dispatch the callback.""" if not callback: # 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( advertisement_data.service_uuids