From 6a07f2eca9dc7955003e303c511ce1fcc6783c8e Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 12 Dec 2023 01:01:52 +0100 Subject: [PATCH] Fix passive_update_processor --- homeassistant/components/bluetooth/passive_update_processor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/bluetooth/passive_update_processor.py b/homeassistant/components/bluetooth/passive_update_processor.py index eeccf081b55cc0..601f78d4c8d190 100644 --- a/homeassistant/components/bluetooth/passive_update_processor.py +++ b/homeassistant/components/bluetooth/passive_update_processor.py @@ -93,7 +93,10 @@ def deserialize_entity_description( descriptions_class: type[EntityDescription], data: dict[str, Any] ) -> EntityDescription: """Deserialize an entity description.""" + # pylint: disable=protected-access result: dict[str, Any] = {} + if hasattr(descriptions_class, "_dataclass"): + descriptions_class = descriptions_class._dataclass for field in cached_fields(descriptions_class): field_name = field.name # It would be nice if field.type returned the actual