11"""Asynchronous Python client for the OpenSky API."""
22from __future__ import annotations
33
4- from dataclasses import dataclass
5- from datetime import date , datetime , timezone
6-
7- from pydantic import BaseModel , Field , validator
4+ from pydantic import BaseModel , Field
85
96from .const import AircraftCategory , PositionSource
107
@@ -18,12 +15,14 @@ class StatesResponse(BaseModel):
1815
1916class StateVector (BaseModel ):
2017 """Represents the state of a vehicle at a particular time.
18+
2119 Attributes
2220 ----------
2321 icao24: ICAO24 address of the transmitter in hex string representation.
2422 callsign: Callsign of the vehicle.
2523 origin_country: Inferred through the ICAO24 address.
26- time_position: Seconds since epoch of last position report. Can be None if there was no position report received by OpenSky within 15s before.
24+ time_position: Seconds since epoch of last position report. Can be None if there
25+ was no position report received by OpenSky within 15s before.
2726 last_contact: Seconds since epoch of last received message from this transponder.
2827 longitude: In ellipsoidal coordinates (WGS-84) and degrees.
2928 latitude: In ellipsoidal coordinates (WGS-84) and degrees.
@@ -32,7 +31,8 @@ class StateVector(BaseModel):
3231 velocity: Over ground in m/s.
3332 true_track: In decimal degrees (0 is north).
3433 vertical_rate: In m/s, incline is positive, decline negative.
35- sensors: Serial numbers of sensors which received messages from the vehicle within the validity period of this state vector.
34+ sensors: Serial numbers of sensors which received messages from the vehicle within
35+ the validity period of this state vector.
3636 barometric_altitude: Barometric altitude in meters.
3737 transponder_code: Transponder code aka Squawk.
3838 special_purpose_indicator: Special purpose indicator.
0 commit comments