Skip to content

Commit

Permalink
Skip unneeded dataclass conversion in storage (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored Mar 28, 2024
1 parent ce30fef commit c0cc19f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
from ..common.helpers.util import (
create_attribute_path_from_attribute,
dataclass_from_dict,
dataclass_to_dict,
parse_attribute_path,
parse_value,
)
Expand Down Expand Up @@ -1348,7 +1347,7 @@ def _write_node_state(self, node_id: int, force: bool = False) -> None:
node = self._nodes[node_id]
self.server.storage.set(
DATA_KEY_NODES,
value=dataclass_to_dict(node),
value=node,
subkey=str(node_id),
force=force,
)
Expand Down

0 comments on commit c0cc19f

Please sign in to comment.