From 422fe48c3a438ba94ba1da83ed4038d3581c70cb Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Sat, 7 Aug 2021 12:15:31 +0200 Subject: [PATCH] Correct device class typo in rfxtrx (#54200) --- homeassistant/components/rfxtrx/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/rfxtrx/binary_sensor.py b/homeassistant/components/rfxtrx/binary_sensor.py index d697c56f7e8..f6751d760b2 100644 --- a/homeassistant/components/rfxtrx/binary_sensor.py +++ b/homeassistant/components/rfxtrx/binary_sensor.py @@ -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():