Skip to content

Commit 652a5ab

Browse files
committed
accept PR #22
2 parents 581e388 + c9bc1da commit 652a5ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frost_sta_client/model/historical_location.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ def __ne__(self, other):
107107
def __getstate__(self):
108108
data = super().__getstate__()
109109
if self.time is not None:
110-
data['Time'] = utils.parse_datetime(self.time)
110+
data['time'] = utils.parse_datetime(self.time)
111111
if self.thing is not None:
112112
data['Thing'] = self.thing
113113
if self.locations is not None and len(self.locations.entities) > 0:
114-
data['Locations'] = self.locations.__gestate__()
114+
data['Locations'] = self.locations.__getstate__()
115115
return data
116116

117117
def __setstate__(self, state):
118118
super().__setstate__(state)
119-
self.time = state.get("Time", None)
119+
self.time = state.get("time", None)
120120
if state.get("Thing", None) is not None:
121121
self.thing = frost_sta_client.model.thing.Thing()
122122
self.thing.__setstate__(state["Thing"])

0 commit comments

Comments
 (0)