|  | @@ -34,7 +34,14 @@ class Calibrations(object):
 | 
												
													
														
															|  |                  'fallTolerance': self.FALL_TOLERANCE,
 |  |                  'fallTolerance': self.FALL_TOLERANCE,
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        elif remote and not local:
 |  | 
 | 
												
													
														
															|  | 
 |  | +        elif not remote and local:
 | 
												
													
														
															|  | 
 |  | +            calibration = {
 | 
												
													
														
															|  | 
 |  | +                'tolerance': self.TOLERANCE_RATE,
 | 
												
													
														
															|  | 
 |  | +                'threshold': self.THRESHOLD,
 | 
												
													
														
															|  | 
 |  | +                'fallTolerance': self.FALL_TOLERANCE,
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        else:
 | 
												
													
														
															|  |              calibration = {
 |  |              calibration = {
 | 
												
													
														
															|  |                  'tolerance': remote.get(
 |  |                  'tolerance': remote.get(
 | 
												
													
														
															|  |                      'tolerance',
 |  |                      'tolerance',
 | 
												
											
												
													
														
															|  | @@ -50,13 +57,6 @@ class Calibrations(object):
 | 
												
													
														
															|  |                  )
 |  |                  )
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -        elif not remote and local:
 |  | 
 | 
												
													
														
															|  | -            calibration = {
 |  | 
 | 
												
													
														
															|  | -                'tolerance': self.TOLERANCE_RATE,
 |  | 
 | 
												
													
														
															|  | -                'threshold': self.THRESHOLD,
 |  | 
 | 
												
													
														
															|  | -                'fallTolerance': self.FALL_TOLERANCE,
 |  | 
 | 
												
													
														
															|  | -            }
 |  | 
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  |          self.items[station] = calibration
 |  |          self.items[station] = calibration
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |          return self.items[station]
 |  |          return self.items[station]
 |