Skip to content

Commit

Permalink
Fix rfxtrx device id matching (#15819)
Browse files Browse the repository at this point in the history
* Issue #15773

Fix PT2262 devices are incorrectly matched in rfxtrx component

* style
  • Loading branch information
Danielhiversen authored and balloob committed Aug 4, 2018
1 parent dbe44c0 commit c7a8f11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/rfxtrx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c7a8f11

Please sign in to comment.