From 65bc3ae06d0becbf118ac47d5e9e48cf177f8d28 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Mar 2023 22:37:46 +0100 Subject: [PATCH] Noisy beacons device configuration should look both at manufacturer and model. --- platypush/plugins/bluetooth/_ble/_event_handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/bluetooth/_ble/_event_handler.py b/platypush/plugins/bluetooth/_ble/_event_handler.py index ecd430e8..a2bfeb8a 100644 --- a/platypush/plugins/bluetooth/_ble/_event_handler.py +++ b/platypush/plugins/bluetooth/_ble/_event_handler.py @@ -183,7 +183,10 @@ class EventHandler: return False # If the manufacturer is in the excluded list, we should skip it - if device.manufacturer in _excluded_manufacturers: + if ( + device.manufacturer in _excluded_manufacturers + or device.model in _excluded_manufacturers + ): return True # If the device has any children other than services, don't skip it