Fix issue with creation of PT2262 devices in rfxtrx integration (#38074)

This commit is contained in:
Rob Bierbooms 2020-07-23 00:09:37 +02:00 committed by GitHub
parent b15dad8c4b
commit 83a27f4855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 7 deletions

View file

@ -9,6 +9,7 @@ from homeassistant.core import callback
from . import (
CONF_AUTOMATIC_ADD,
CONF_DATA_BITS,
CONF_SIGNAL_REPETITIONS,
DEFAULT_SIGNAL_REPETITIONS,
DOMAIN,
@ -48,7 +49,9 @@ async def async_setup_entry(
if not supported(event):
continue
device_id = get_device_id(event.device)
device_id = get_device_id(
event.device, data_bits=entity_info.get(CONF_DATA_BITS)
)
if device_id in device_ids:
continue
device_ids.add(device_id)