Correct device class typo in rfxtrx (#54200)

This commit is contained in:
Joakim Plate 2021-08-07 12:15:31 +02:00 committed by GitHub
parent 6830eec549
commit 422fe48c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ async def async_setup_entry(
if description is None:
description = BinarySensorEntityDescription(key=type_string)
if device_class:
description = replace(description, device_class=device)
description = replace(description, device_class=device_class)
return description
for packet_id, entity_info in discovery_info[CONF_DEVICES].items():