Skip to content

Commit

Permalink
Small speed up to constructing Bluetooth service_uuids (#104193)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Nov 19, 2023
1 parent 267bbaf commit e7cec9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/bluetooth/base_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _async_on_advertisement(
local_name = prev_name

if service_uuids and service_uuids != prev_service_uuids:
service_uuids = list(set(service_uuids + prev_service_uuids))
service_uuids = list({*service_uuids, *prev_service_uuids})
elif not service_uuids:
service_uuids = prev_service_uuids

Expand Down

0 comments on commit e7cec9b

Please sign in to comment.