From c7a8f1143c43567ccd3218c14d5a2ae6993bc927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Sat, 4 Aug 2018 15:23:57 +0200 Subject: [PATCH] Fix rfxtrx device id matching (#15819) * Issue #15773 Fix PT2262 devices are incorrectly matched in rfxtrx component * style --- homeassistant/components/rfxtrx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/rfxtrx.py b/homeassistant/components/rfxtrx.py index afe777ff7cc..60dbb209039 100644 --- a/homeassistant/components/rfxtrx.py +++ b/homeassistant/components/rfxtrx.py @@ -166,6 +166,7 @@ def get_pt2262_device(device_id): """Look for the device which id matches the given device_id parameter.""" for device in RFX_DEVICES.values(): if (hasattr(device, 'is_lighting4') and + device.masked_id is not None and device.masked_id == get_pt2262_deviceid(device_id, device.data_bits)): _LOGGER.debug("rfxtrx: found matching device %s for %s",