File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,20 +99,20 @@ def __init__(
9999 def get_state (self ) -> TrainStopStatus :
100100 """Retrieve the state of the departure."""
101101 if self .canceled :
102- return TrainStopStatus .CANCELED . value
102+ return TrainStopStatus .CANCELED
103103 if (
104104 self .advertised_time_at_location is not None
105105 and self .time_at_location is not None
106106 and self .advertised_time_at_location != self .time_at_location
107107 ):
108- return TrainStopStatus .DELAYED . value
108+ return TrainStopStatus .DELAYED
109109 if (
110110 self .advertised_time_at_location is not None
111111 and self .estimated_time_at_location is not None
112112 and self .advertised_time_at_location != self .estimated_time_at_location
113113 ):
114- return TrainStopStatus .DELAYED . value
115- return TrainStopStatus .ON_TIME . value
114+ return TrainStopStatus .DELAYED
115+ return TrainStopStatus .ON_TIME
116116
117117 def get_delay_time (self ) -> timedelta | None :
118118 """Calculate the delay of a departure."""
Original file line number Diff line number Diff line change 77
88setup (
99 name = "pytrafikverket" ,
10- version = "0.3.2 " ,
10+ version = "0.3.3 " ,
1111 description = "Retreive values from public API at the Swedish Transport Administration (Trafikverket)." ,
1212 long_description = long_description ,
1313 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments