- def rectified(self) -> Dict[str, Any]: # JSON-able dict
- return {
- "type": "location",
- "devtime": str(self.devtime),
- "speed": self.speed,
- "direction": self.heading,
- "latitude": self.latitude,
- "longitude": self.longitude,
- }
+ def rectified(self) -> CoordReport: # JSON-able dict
+ return CoordReport(
+ devtime=str(self.devtime),
+ battery_percentage=None,
+ accuracy=None,
+ altitude=None,
+ speed=self.speed,
+ direction=self.heading,
+ latitude=self.latitude,
+ longitude=self.longitude,
+ )