Skip to content

Commit

Permalink
feat: Add 'calculated at' for Insight
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Jan 24, 2024
1 parent 807e41b commit 80b3d9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyhomelink/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ def location(self) -> str:
"""Return the location of the Insight"""
return self._raw_data.get("location", None)

@property
def calculatedat(self) -> str:
"""Return the datetime of the Insight calculation"""
return self._raw_data.get("calculatedAt", None)

@property
def rel(self) -> any:
"""Return the tags of the Insight"""
Expand Down

0 comments on commit 80b3d9a

Please sign in to comment.