Skip to content

Commit

Permalink
Added datapoints to module structufe on behalf of our beloved Matej J…
Browse files Browse the repository at this point in the history
…aneba's request. With love Michal :***
  • Loading branch information
nono3551 committed May 5, 2020
1 parent 248ddac commit 4c1c7cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def summary(self) -> dict:
uuid=str(self.uuid),
address=self.address,
poll_rate=self.poll_rate,
datapoints=[datapoint.summary() for datapoint
in self.module.module_device_type.device_type_datapoints]
)

def module_summary(self) -> dict:
Expand Down

0 comments on commit 4c1c7cd

Please sign in to comment.