From a6770f8b03c67a129080df0dee4467dca6bf81f3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 27 Aug 2022 08:23:47 -0500 Subject: [PATCH] Adjust bluetooth matcher comments (#77409) --- homeassistant/components/bluetooth/match.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/bluetooth/match.py b/homeassistant/components/bluetooth/match.py index e9f535200b5..813acfc8cda 100644 --- a/homeassistant/components/bluetooth/match.py +++ b/homeassistant/components/bluetooth/match.py @@ -159,7 +159,7 @@ class BluetoothMatcherIndexBase(Generic[_T]): likely to match. This allows us to only check the service infos against each bucket to see if we should match against the data. - This is optimized for cases were no service infos will be matched in + This is optimized for cases when no service infos will be matched in any bucket and we can quickly reject the service info as not matching. """ @@ -349,7 +349,7 @@ def ble_device_matches( """Check if a ble device and advertisement_data matches the matcher.""" device = service_info.device - # Do don't check address here since all callers already + # Don't check address here since all callers already # check the address and we don't want to double check # since it would result in an unreachable reject case.