Skip to content

Commit

Permalink
Fix passive_update_processor
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Dec 12, 2023
1 parent 1c9b43a commit 6a07f2e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a07f2e

Please sign in to comment.