File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,9 +54,7 @@ async def on_start(self) -> None:
5454
5555 async def on_speed_change (self , data : DataPointReply ) -> None :
5656 """Handle wheel speed change events."""
57- vehicle_speed = data .get (
58- self .Vehicle .Chassis .Axle .Row1 .Wheel .Left .Speed
59- ).value
57+ vehicle_speed = data .get (self .Vehicle .Chassis .Axle .Row1 .Wheel .Left .Speed ).value
6058 await self .publish_event (
6159 DATABROKER_SUBSCRIPTION_TOPIC ,
6260 json .dumps ({"speed" : vehicle_speed }),
@@ -71,9 +69,7 @@ async def on_get_speed_request_received(self, data: str) -> None:
7169 data ,
7270 )
7371
74- vehicle_speed = (
75- await self .Vehicle .Chassis .Axle .Row1 .Wheel .Left .Speed .get ()
76- ).value
72+ vehicle_speed = (await self .Vehicle .Chassis .Axle .Row1 .Wheel .Left .Speed .get ()).value
7773
7874 await self .publish_event (
7975 GET_SPEED_RESPONSE_TOPIC ,
You can’t perform that action at this time.
0 commit comments