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",