From 34a307feb15343950faf3479d638ed903ac4bba7 Mon Sep 17 00:00:00 2001 From: Adam Jacques Date: Tue, 15 Aug 2023 23:55:45 -0700 Subject: [PATCH] Fix id allow list mistake in MQTT+HASS example --- examples/rtl_433_mqtt_hass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rtl_433_mqtt_hass.py b/examples/rtl_433_mqtt_hass.py index 6b06c73ac..6e1526da3 100755 --- a/examples/rtl_433_mqtt_hass.py +++ b/examples/rtl_433_mqtt_hass.py @@ -813,7 +813,7 @@ def bridge_event_to_hass(mqttc, topic_prefix, data): logging.warning("No suitable identifier found for model: ", model) return - if args.ids and id in data and data.get("id") not in args.ids: + if args.ids and "id" in data and data.get("id") not in args.ids: # not in the safe list logging.debug("Device (%s) is not in the desired list of device ids: [%s]" % (data["id"], ids)) return