def reset_devices():
 temper_devices = get_temper_devices()
 for (sensor, device) in zip(TEMPER_SENSORS, temper_devices):
  sensor.set_temper_device(device)

def reset_devices ( ) : temper_devices = get_temper_devices ( ) for ( sensor , device ) in zip ( TEMPER_SENSORS , temper_devices ) : sensor . set_temper_device ( device )
re-scan for underlying temper sensors and assign them to our devices .