Skip to content

Commit

Permalink
Fix string concatenation in Python Code Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Circuitsoft committed Oct 15, 2017
1 parent cf114cd commit eb61330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyaci/aci/AciEvent.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def __init__(self, sensor_id, data):
self.data = data
def __repr__(self):
if self.is_valid:
return "SensorValues: sensor_id:{sensor_id} proximity_ids:{proximity_ids} " \
return ("SensorValues: sensor_id:{sensor_id} proximity_ids:{proximity_ids} " \
+ "proximity_rssi:{proximity_rssi} battery:{battery}, accel:(" \
+ "{accel_x}, {accel_y}, {accel_z}), status:{status}, " \
+ "valid_time:{valid_time}".format(**vars(self))
+ "valid_time:{valid_time}").format(**vars(self))
else:
return "SensorValues: invalid data from sensor {sensor_id}: ({data})"\
.format(**vars(self))
Expand Down Expand Up @@ -187,10 +187,10 @@ def __init__(self, data):
) = unpack('<BiHHBiHH', bytearray(data))

def __repr__(self):
return "Heartbeat: rssi:{rssi} sensor_id:{sensor_id} epoch:{epoch_seconds} " \
return ("Heartbeat: rssi:{rssi} sensor_id:{sensor_id} epoch:{epoch_seconds} " \
+ "ms:{epoch_ms} clock_version:{clock_version} received_at:{received_at} " \
+ "received_at_ms:{received_at_ms} " \
+ "local_clock_version:{local_clock_version}".format(**vars(self))
+ "local_clock_version:{local_clock_version}").format(**vars(self))

class AciEventAppEvt(AciEventPkt):
APP_EVENT_OPCODE_HEARTBEAT = 0x01
Expand Down

0 comments on commit eb61330

Please sign in to comment.