mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix rfxtrx device id matching (#15819)
* Issue #15773 Fix PT2262 devices are incorrectly matched in rfxtrx component * style
This commit is contained in:
parent
dbe44c076e
commit
c7a8f1143c
@ -166,6 +166,7 @@ def get_pt2262_device(device_id):
|
|||||||
"""Look for the device which id matches the given device_id parameter."""
|
"""Look for the device which id matches the given device_id parameter."""
|
||||||
for device in RFX_DEVICES.values():
|
for device in RFX_DEVICES.values():
|
||||||
if (hasattr(device, 'is_lighting4') and
|
if (hasattr(device, 'is_lighting4') and
|
||||||
|
device.masked_id is not None and
|
||||||
device.masked_id == get_pt2262_deviceid(device_id,
|
device.masked_id == get_pt2262_deviceid(device_id,
|
||||||
device.data_bits)):
|
device.data_bits)):
|
||||||
_LOGGER.debug("rfxtrx: found matching device %s for %s",
|
_LOGGER.debug("rfxtrx: found matching device %s for %s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user