Skip to content

Commit

Permalink
fix: Correct incorrect formating of calaulateAt for Insight
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Sep 16, 2024
1 parent 62cacc8 commit 2582b10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyhomelink/insight.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Python module for accessing HomeLINK Insight."""

from .utils import parse_date


class Insight:
"""Insight is the instantiation of a HomeLINK Insight"""
Expand Down Expand Up @@ -46,7 +48,7 @@ def location(self) -> str:
@property
def calculatedat(self) -> str:
"""Return the datetime of the Insight calculation"""
return self._raw_data.get("calculatedAt", None)
return parse_date(self._raw_data.get("calculatedAt", None))

@property
def rel(self) -> any:
Expand Down

0 comments on commit 2582b10

Please sign in to comment.